summaryrefslogtreecommitdiff
path: root/tests/functions.bats
blob: 9ae832aa014ecc6fb7f5e8ac3dbbcfa36a5fa438 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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\""
}