Run valgrind on run-shape-fuzzer only when RUN_VALGRIND is set (#1285)
authorEbrahim Byagowi <ebrahim@gnu.org>
Sat, 20 Oct 2018 04:09:18 +0000 (07:39 +0330)
committerGitHub <noreply@github.com>
Sat, 20 Oct 2018 04:09:18 +0000 (07:39 +0330)
.circleci/config.yml
test/fuzzing/run-shape-fuzzer-tests.py

index d661a14..e73f53c 100644 (file)
@@ -102,7 +102,7 @@ jobs:
       - run: make -j32
       # run-shape-fuzzer-tests.py automatically runs valgrind if see available
       # but test/api runs it by request, we probably should normalize the approaches
-      - run: make check && make -Ctest/api check-valgrind || .ci/fail.sh
+      - run: RUN_VALGRIND=1 make check && make -Ctest/api check-valgrind || .ci/fail.sh
       # informational for now
       - run: make -Ctest/api check-symbols || true
 
index dcdab67..53c4f50 100755 (executable)
@@ -67,7 +67,9 @@ please provide it as the first argument to the tool""")
 print ('hb_shape_fuzzer:', hb_shape_fuzzer)
 fails = 0
 
-valgrind = which ('valgrind')
+valgrind = None
+if os.environ.get('RUN_VALGRIND', ''):
+       valgrind = which ('valgrind')
 
 parent_path = os.path.join (srcdir, "fonts")
 for file in os.listdir (parent_path):