gen2stage4/tests/0004.bats
lucianposton 94b0040499
Add BATS tests with automated github workflow (#34)
Added tests, including test cases for:
* the -b option
* the -c (connman) option
* the -e option
* the -k option
* the -l option
* portage dirs


Signed-off-by: Lucian Poston <lucianposton@pm.me>
2020-02-07 00:59:18 +01:00

24 lines
382 B
Bash

#!/usr/bin/env bats
load test_helper
setup() {
f test/boot/kernel
d test/boot/boot
mkstage4.sh -b -q -t test test
}
teardown() {
rm -rf test test.tar.bz2
}
@test "/boot/kernel is excluded" {
assert_tar_excludes test/boot/kernel
}
@test "/boot/boot is included" {
skip "TODO: Not yet implemented"
assert_tar_includes test/boot/boot
}
# vim: ft=bash