summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-11-07 15:59:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-07 16:02:47 +0000
commit95cd15c02501ec178a69333d136207f695550044 (patch)
treea30343acefaef90276bd158bf5b5590ebe2364f8 /tests
parent21dcfb1f21ac651cd4753100fe08d54402ecda0d (diff)
downloadabuild-95cd15c02501ec178a69333d136207f695550044.tar.gz
abuild-95cd15c02501ec178a69333d136207f695550044.tar.bz2
abuild-95cd15c02501ec178a69333d136207f695550044.tar.xz
abuild-95cd15c02501ec178a69333d136207f695550044.zip
functions.sh: dont die if gcc is missing
abuild-sign does not use gcc. fixes #9974
Diffstat (limited to 'tests')
-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\""
+}