summaryrefslogtreecommitdiff
path: root/tests/functions.bats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions.bats')
-rw-r--r--tests/functions.bats11
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\""
+}