Mercurial > hg
comparison tests/test-fuzz-targets.t @ 40726:6c01fad8de32 stable
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 14 Nov 2018 10:11:37 -0500 |
parents | 46dcb9f14900 |
children | d9fc51f77cc5 |
comparison
equal
deleted
inserted
replaced
40725:90e26ef4cbb1 | 40726:6c01fad8de32 |
---|---|
1 #require test-repo | 1 #require test-repo |
2 | 2 |
3 $ cd $TESTDIR/../contrib/fuzz | 3 $ cd $TESTDIR/../contrib/fuzz |
4 | 4 |
5 which(1) could exit nonzero, but that's fine because we'll still end | |
6 up without a valid executable, so we don't need to check $? here. | |
7 | |
8 $ if which gmake >/dev/null 2>&1; then | |
9 > MAKE=gmake | |
10 > else | |
11 > MAKE=make | |
12 > fi | |
13 | |
5 #if clang-libfuzzer | 14 #if clang-libfuzzer |
6 $ make -s clean all | 15 $ $MAKE -s clean all |
7 #endif | 16 #endif |
8 #if no-clang-libfuzzer clang-6.0 | 17 #if no-clang-libfuzzer clang-6.0 |
9 $ make -s clean all CC=clang-6.0 CXX=clang++-6.0 | 18 $ $MAKE -s clean all CC=clang-6.0 CXX=clang++-6.0 |
10 #endif | 19 #endif |
11 #if no-clang-libfuzzer no-clang-6.0 | 20 #if no-clang-libfuzzer no-clang-6.0 |
12 $ exit 80 | 21 $ exit 80 |
13 #endif | 22 #endif |
14 | 23 |