mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-12-22 08:41:06 -05:00
Update tests-2
This commit is contained in:
parent
21049359ad
commit
21ae95f8c0
4 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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" {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'" {
|
||||
|
|
Loading…
Reference in a new issue