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

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Nov 14 15:13:11 UTC 2018


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

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

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5269

AFFECTED FILES
  tests/test-fuzz-targets.t

CHANGE DETAILS

diff --git a/tests/test-fuzz-targets.t b/tests/test-fuzz-targets.t
--- a/tests/test-fuzz-targets.t
+++ b/tests/test-fuzz-targets.t
@@ -2,11 +2,17 @@
 
   $ cd $TESTDIR/../contrib/fuzz
 
+  $ if [ -x /usr/local/bin/gmake ] ; then
+  >     MAKE=gmake
+  > else
+  >     MAKE=make
+  > fi
+
 #if clang-libfuzzer
-  $ make -s clean all
+  $ $MAKE -s clean all
 #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



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list