t/110-compile and t/111-example: skip if no C compiler installed.

It's nice to validate "real" use with a C compiler, but silly to
completely fail validation just because a C compiler is missing.
This commit is contained in:
Avery Pennarun 2018-11-19 15:46:22 -05:00
commit 02220d4318
2 changed files with 12 additions and 2 deletions

View file

@ -1 +1,6 @@
if type cc >/dev/null 2>&1; then
redo-ifchange hello yellow bellow
else
echo "$0: No C compiler installed; skipping this test." >&2
redo-ifcreate /usr/bin/cc
fi

View file

@ -1 +1,6 @@
if type cc >/dev/null 2>&1; then
redo-ifchange hello
else
echo "$0: No C compiler installed; skipping this test." >&2
redo-ifcreate /usr/bin/cc
fi