Update tests-2

This commit is contained in:
Eric Renfro 2024-08-03 16:24:02 -04:00
parent 21049359ad
commit 21ae95f8c0
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM
4 changed files with 14 additions and 14 deletions

View file

@ -177,8 +177,8 @@ teardown() {
assert_tar_includes test/root/.bash_history
}
@test "/home/user/chroot/var/tmp/file is included" {
assert_tar_includes test/home/user/chroot/var/tmp/file
@test "/home/user/chroot/var/tmp/file is excluded" {
assert_tar_excludes test/home/user/chroot/var/tmp/file
}
# vim: ft=bash

View file

@ -16,7 +16,7 @@ setup() {
}
teardown() {
rm -rf test test.tar.bz2 test.tar.bz2.ksrc test.tar.bz2.kmod
rm -rf test test.tar.bz2 test.ksrc.tar.bz2 test.tar.bz2.kmod
}
@test "/usr/bin/ping is included" {
@ -60,15 +60,15 @@ teardown() {
}
@test "/usr/src/linux-$TEST_UNAME/.config is included in ksrc" {
assert_tar_includes test/usr/src/linux-"$TEST_UNAME"/.config test.tar.bz2.ksrc
assert_tar_includes test/usr/src/linux-"$TEST_UNAME"/.config test.ksrc.tar.bz2
}
@test "/usr/src/linux-$TEST_UNAME/vmlinux is included in ksrc" {
assert_tar_includes test/usr/src/linux-"$TEST_UNAME"/vmlinux test.tar.bz2.ksrc
assert_tar_includes test/usr/src/linux-"$TEST_UNAME"/vmlinux test.ksrc.tar.bz2
}
@test "/usr/src/linux-different-uname/ is excluded in ksrc" {
assert_tar_excludes test/usr/src/linux-different-uname/ test.tar.bz2.ksrc
assert_tar_excludes test/usr/src/linux-different-uname/ test.ksrc.tar.bz2
}
@test "/lib/modules/$TEST_UNAME/mod.ko is included in kmod" {

View file

@ -25,28 +25,28 @@ teardown() {
}
@test "-e '/lost+found'" {
assert_tar_includes test/usr/bin/lost+found test0.tar.bz2
assert_tar_includes test/usr/bin/lost+found
assert_tar_excludes test/usr/bin/lost+found test0.tar.bz2
assert_tar_excludes test/usr/bin/lost+found
assert_tar_includes test/lost+found test0.tar.bz2
assert_tar_excludes test/lost+found test0.tar.bz2
assert_tar_excludes test/lost+found
}
@test "-e 'user/.*'" {
assert_tar_includes test/home/user/.dotfile test0.tar.bz2
assert_tar_excludes test/home/user/.dotfile test0.tar.bz2
assert_tar_excludes test/home/user/.dotfile
assert_tar_includes test/home/user/
}
@test "-e 'test/home/user/chroot/var/tmp/file'" {
assert_tar_includes test/home/user/chroot/var/tmp/file test0.tar.bz2
assert_tar_excludes test/home/user/chroot/var/tmp/file test0.tar.bz2
assert_tar_excludes test/home/user/chroot/var/tmp/file
}
@test "-e 'ccache/*'" {
assert_tar_includes test/home/user/ccache/file test0.tar.bz2
assert_tar_excludes test/home/user/ccache/file test0.tar.bz2
assert_tar_excludes test/home/user/ccache/file
assert_tar_includes test/home/user/ccache/
assert_tar_excludes test/home/user/ccache/
assert_tar_includes test/root/ccache/file test0.tar.bz2
assert_tar_excludes test/root/ccache/file

View file

@ -27,7 +27,7 @@ teardown() {
@test "-i 'test/home/user/.keep and -e 'user/.*'" {
assert_tar_excludes test/home/user/.dotfile
assert_tar_includes test/home/user/.keep
assert_tar_excludes test/home/user/.keep
}
@test "-i 'test/etc/ssh/config and -e 'ssh'" {