diff --git a/tests/integration/01_simple.sh b/tests/integration/01_simple.sh index 14d0e27f..d2a67cde 100755 --- a/tests/integration/01_simple.sh +++ b/tests/integration/01_simple.sh @@ -84,6 +84,14 @@ testInstallAgain() { assertEquals 'install test successfully' "$installst" "0" assertNotContains 'contains warning' "$output" 'Filtering out' assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]" + assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]" +} + +testCleanup() { + luet cleanup --config $tmpdir/luet.yaml + installst=$? + assertEquals 'install test successfully' "$installst" "0" + assertTrue 'package installed' "[ ! -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]" } # Load shUnit2. diff --git a/tests/integration/01_simple_gzip.sh b/tests/integration/01_simple_gzip.sh index a1dda86d..8ccb0de7 100755 --- a/tests/integration/01_simple_gzip.sh +++ b/tests/integration/01_simple_gzip.sh @@ -89,6 +89,14 @@ testInstallAgain() { assertEquals 'install test successfully' "$installst" "0" assertNotContains 'contains warning' "$output" 'Filtering out' assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]" + assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]" +} + +testCleanup() { + luet cleanup --config $tmpdir/luet.yaml + installst=$? + assertEquals 'install test successfully' "$installst" "0" + assertTrue 'package installed' "[ ! -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]" } # Load shUnit2.