diff options
Diffstat (limited to 'tests/functions.bats')
-rw-r--r-- | tests/functions.bats | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functions.bats b/tests/functions.bats new file mode 100644 index 0000000..9ae832a --- /dev/null +++ b/tests/functions.bats @@ -0,0 +1,11 @@ +setup() { + export FUNCS=../functions.sh +} + +@test "check if CBUILD is set" { + . $FUNCS && test -n "$CBUILD" +} + +@test "check that missing gcc does not kill us" { + sh -e -c "CC=false; . $FUNCS && test -z \"$CBUILD\"" +} |