mirror of
https://github.com/mudler/luet.git
synced 2025-08-15 14:03:34 +00:00
Adapt integration tests
This commit is contained in:
parent
a6b6909dc4
commit
4700d27f0e
@ -85,7 +85,6 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
|
@ -120,8 +120,6 @@ testInstallAgain() {
|
|||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package Z installed' "[ -e '$tmpdir/testrootfs/z' ]"
|
assertTrue 'package Z installed' "[ -e '$tmpdir/testrootfs/z' ]"
|
||||||
assertTrue 'package Z in cache' "[ -e '$tmpdir/testrootfs/packages/z-test-1.0+2.package.tar.zst' ]"
|
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.zst' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
|
@ -60,7 +60,7 @@ testDownloadOnly() {
|
|||||||
installst=$?
|
installst=$?
|
||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertTrue 'package not installed' "[ ! -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package not installed' "[ ! -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'cache populated' "[ -e '$tmpdir/testrootfs/var/cache/luet/packages/c-test-1.0.package.tar.gz' ]"
|
assertTrue 'cache populated' "[ -e '$tmpdir/testrootfs/var/cache/luet/packages/README' ]"
|
||||||
|
|
||||||
luet install -y --config $tmpdir/luet.yaml test/c > /dev/null
|
luet install -y --config $tmpdir/luet.yaml test/c > /dev/null
|
||||||
installst=$?
|
installst=$?
|
||||||
@ -72,7 +72,7 @@ testCleanup() {
|
|||||||
luet cleanup --config $tmpdir/luet.yaml > /dev/null
|
luet cleanup --config $tmpdir/luet.yaml > /dev/null
|
||||||
installst=$?
|
installst=$?
|
||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertTrue 'package installed' "[ ! -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]"
|
assertTrue 'cache dropped' "[ ! -e '$tmpdir/testrootfs/var/cache/luet/packages/README' ]"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Load shUnit2.
|
# Load shUnit2.
|
||||||
|
@ -90,14 +90,12 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
luet cleanup --config $tmpdir/luet.yaml
|
luet cleanup --config $tmpdir/luet.yaml
|
||||||
installst=$?
|
installst=$?
|
||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertTrue 'package installed' "[ ! -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Load shUnit2.
|
# Load shUnit2.
|
||||||
|
@ -90,7 +90,6 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.zst' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
|
@ -93,7 +93,6 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
|
@ -93,7 +93,6 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.zst' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
|
@ -83,14 +83,13 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
luet cleanup --config $tmpdir/luet.yaml
|
luet cleanup --config $tmpdir/luet.yaml
|
||||||
installst=$?
|
installst=$?
|
||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertTrue 'package installed' "[ ! -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.gz' ]"
|
assertTrue 'package installed' "[ ! -e '$tmpdir/testrootfs/packages/README' ]"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Load shUnit2.
|
# Load shUnit2.
|
||||||
|
@ -142,7 +142,7 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.zst' ]"
|
assertTrue 'cache initialized' "[ -e '$tmpdir/testrootfs/packages/README' ]"
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
@ -151,6 +151,7 @@ testCleanup() {
|
|||||||
luet cleanup --config $tmpdir/luet-client.yaml
|
luet cleanup --config $tmpdir/luet-client.yaml
|
||||||
installst=$?
|
installst=$?
|
||||||
assertEquals 'cleanup test successfully' "$installst" "0"
|
assertEquals 'cleanup test successfully' "$installst" "0"
|
||||||
|
assertTrue 'cache removed' "[ ! -e '$tmpdir/testrootfs/packages/README' ]"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Load shUnit2.
|
# Load shUnit2.
|
||||||
|
@ -147,7 +147,6 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.zst' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
|
@ -146,7 +146,6 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.zst' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
|
@ -154,7 +154,6 @@ testInstallAgain() {
|
|||||||
assertEquals 'install test successfully' "$installst" "0"
|
assertEquals 'install test successfully' "$installst" "0"
|
||||||
assertNotContains 'contains warning' "$output" 'No packages to install'
|
assertNotContains 'contains warning' "$output" 'No packages to install'
|
||||||
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
assertTrue 'package installed' "[ -e '$tmpdir/testrootfs/c' ]"
|
||||||
assertTrue 'package in cache' "[ -e '$tmpdir/testrootfs/packages/c-test-1.0.package.tar.zst' ]"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCleanup() {
|
testCleanup() {
|
||||||
|
Loading…
Reference in New Issue
Block a user