Skip to content
Snippets Groups Projects
Commit 6c01fad8 authored by Augie Fackler's avatar Augie Fackler
Browse files

tests: sniff for /usr/local/bin/gmake and use it in test-fuzz-targets.t

This isn't as robust as it probably should be, but for now it'll get
the job done on the buildbots.

Differential Revision: https://phab.mercurial-scm.org/D5269
parent 90e26ef4
No related branches found
No related tags found
No related merge requests found
......@@ -2,4 +2,13 @@
$ cd $TESTDIR/../contrib/fuzz
which(1) could exit nonzero, but that's fine because we'll still end
up without a valid executable, so we don't need to check $? here.
$ if which gmake >/dev/null 2>&1; then
> MAKE=gmake
> else
> MAKE=make
> fi
#if clang-libfuzzer
......@@ -5,4 +14,4 @@
#if clang-libfuzzer
$ make -s clean all
$ $MAKE -s clean all
#endif
#if no-clang-libfuzzer clang-6.0
......@@ -7,6 +16,6 @@
#endif
#if no-clang-libfuzzer clang-6.0
$ make -s clean all CC=clang-6.0 CXX=clang++-6.0
$ $MAKE -s clean all CC=clang-6.0 CXX=clang++-6.0
#endif
#if no-clang-libfuzzer no-clang-6.0
$ exit 80
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment