From 95cd15c02501ec178a69333d136207f695550044 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 7 Nov 2019 15:59:01 +0000 Subject: functions.sh: dont die if gcc is missing abuild-sign does not use gcc. fixes #9974 --- tests/functions.bats | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/functions.bats (limited to 'tests') 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\"" +} -- cgit v1.2.3-70-g09d2