mirror of https://github.com/openXC7/prjxray.git
fuzzers: Use make directly when VERBOSE=Y
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
parent
f8c3ada041
commit
6249f24fd2
|
|
@ -1,11 +1,10 @@
|
|||
/env/
|
||||
/build/
|
||||
/logs/
|
||||
/database/
|
||||
.Xil
|
||||
**/specimen_*
|
||||
**/output
|
||||
run.ok
|
||||
stderr.*.log
|
||||
stdout.*.log
|
||||
__pycache__
|
||||
*.pyc
|
||||
|
|
|
|||
|
|
@ -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,))
|
||||
|
|
|
|||
Loading…
Reference in New Issue