Skip to content

Commit

Permalink
add valgrind tests for install and erase
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkurth committed May 3, 2022
1 parent fc25f2a commit b0c6cfc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pytests/tests/test_erase.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ def test_erase_package_without_version_suffix(utils):

utils.run(['tdnf', 'erase', '-y', pkgname])
assert(not utils.check_package(pkgname))


def test_erase_memcheck(utils):
pkgname = utils.config["mulversion_pkgname"]
utils.install_package(pkgname)

utils.run_memcheck(['tdnf', 'erase', '-y', pkgname])
assert(not utils.check_package(pkgname))
8 changes: 8 additions & 0 deletions pytests/tests/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@ def test_dummy_requires(utils):
pkg = utils.config["dummy_requires_pkgname"]
ret = utils.run(['tdnf', 'install', '-y', pkg])
assert ' nothing provides ' in ret['stderr'][0]


def test_install_memcheck(utils):
pkgname = utils.config["mulversion_pkgname"]
utils.erase_package(pkgname)

utils.run_memcheck(['tdnf', 'install', '-y', '--nogpgcheck', pkgname])
assert(utils.check_package(pkgname))

0 comments on commit b0c6cfc

Please sign in to comment.