fuzzers: Use make directly when VERBOSE=Y

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2019-02-05 17:25:04 +11:00
parent f8c3ada041
commit 6249f24fd2
2 changed files with 14 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,11 +1,10 @@
/env/
/build/
/logs/
/database/
.Xil
**/specimen_*
**/output
run.ok
stderr.*.log
stdout.*.log
__pycache__
*.pyc

View File

@ -23,14 +23,26 @@ all: $(1)/run.ok
# Make the clean target run `make clean` in the fuzzer's directory.
clean::
$$(MAKE) -C $(1) clean
rm -f $(1)/*.log
rm -rf $(1)/logs
# Describe how to create the fuzzer's run.ok file.
# This command must start with a + to tell make to pass the jobserver
# parameters downwards.
ifeq ($(VERBOSE),Y)
# When verbose we just call make directory
$(1)/run.ok: $(addsuffix /run.ok,$(2))
$(MAKE) $(1)
else
# When not verbose, we use the run_fuzzer wrapper which will save the results
# to log files.
$(1)/run.ok: $(addsuffix /run.ok,$(2))
+@$(SELF_DIR)/run_fuzzer.py $(1)
endif
endef
$(eval $(call fuzzer,000-init-db,))