Fix test0003 for kmod

This commit is contained in:
Eric Renfro 2024-08-03 16:28:04 -04:00
parent 21ae95f8c0
commit fbf5621221
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -16,7 +16,7 @@ setup() {
}
teardown() {
rm -rf test test.tar.bz2 test.ksrc.tar.bz2 test.tar.bz2.kmod
rm -rf test test.tar.bz2 test.ksrc.tar.bz2 test.kmod.tar.bz2
}
@test "/usr/bin/ping is included" {
@ -72,19 +72,19 @@ teardown() {
}
@test "/lib/modules/$TEST_UNAME/mod.ko is included in kmod" {
assert_tar_includes test/lib/modules/"$TEST_UNAME"/mod.ko test.tar.bz2.kmod
assert_tar_includes test/lib/modules/"$TEST_UNAME"/mod.ko test.kmod.tar.bz2
}
@test "/lib64/modules/$TEST_UNAME/mod.ko is included in kmod" {
assert_tar_includes test/lib64/modules/"$TEST_UNAME"/mod.ko test.tar.bz2.kmod
assert_tar_includes test/lib64/modules/"$TEST_UNAME"/mod.ko test.kmod.tar.bz2
}
@test "/lib/modules/different-uname/ is excluded in kmod" {
assert_tar_excludes test/lib/modules/different-uname/ test.tar.bz2.kmod
assert_tar_excludes test/lib/modules/different-uname/ test.kmod.tar.bz2
}
@test "/lib64/modules/different-uname/ is excluded in kmod" {
assert_tar_excludes test/lib64/modules/different-uname/ test.tar.bz2.kmod
assert_tar_excludes test/lib64/modules/different-uname/ test.kmod.tar.bz2
}
# vim: ft=bash