mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-11-13 02:38:57 -05:00
8ab90fa6b0
Signed-off-by: Lucian Poston <lucianposton@pm.me>
40 lines
770 B
Bash
40 lines
770 B
Bash
#!/usr/bin/env bats
|
|
|
|
load test_helper
|
|
|
|
setup() {
|
|
f test/var/lib/connman/file
|
|
f test/root/.bash_history
|
|
f test/home/user/.bash_history
|
|
mkstage4.sh -c -q -t test test
|
|
}
|
|
|
|
teardown() {
|
|
rm -rf test test.tar.bz2
|
|
}
|
|
|
|
@test "/var/lib/connman/file is excluded" {
|
|
assert_tar_excludes test/var/lib/connman/file
|
|
}
|
|
|
|
@test "/var/lib/connman/ is included" {
|
|
assert_tar_includes test/var/lib/connman/
|
|
}
|
|
|
|
@test "/home/user/.bash_history is exlucded" {
|
|
assert_tar_excludes test/home/user/.bash_history
|
|
}
|
|
|
|
@test "/home/user/ is included" {
|
|
assert_tar_includes test/home/user/
|
|
}
|
|
|
|
@test "/root/.bash_history is exlucded" {
|
|
assert_tar_excludes test/root/.bash_history
|
|
}
|
|
|
|
@test "/root/ is included" {
|
|
assert_tar_includes test/root/
|
|
}
|
|
|
|
# vim: ft=bash
|