abuild/tests/functions.bats
Natanael Copa 69dd828919 tests: improve test output
prefix each test output so its easier to see what is tested
2020-07-08 10:59:38 +02:00

12 lines
238 B
Bash

setup() {
export FUNCS=../functions.sh
}
@test "functions: check if CBUILD is set" {
. $FUNCS && test -n "$CBUILD"
}
@test "functions: check that missing gcc does not kill us" {
sh -e -c "CC=false; . $FUNCS && test -z \"$CBUILD\""
}