diff --git a/t/110-compile/all.do b/t/110-compile/all.do index a94ac31..1b1954a 100644 --- a/t/110-compile/all.do +++ b/t/110-compile/all.do @@ -1 +1,6 @@ -redo-ifchange hello yellow bellow +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 diff --git a/t/111-example/all.do b/t/111-example/all.do index 29b0c32..14108cf 100644 --- a/t/111-example/all.do +++ b/t/111-example/all.do @@ -1 +1,6 @@ -redo-ifchange hello +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