diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-12-26 13:31:03 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-28 00:43:08 -0800 |
commit | 5cc18122ec756633abd58da03e81fc1ee62e3c0e (patch) | |
tree | cd073be370c685798a61e8a9f8a57146a64407ed | |
parent | 737317a19e54bb4dfa4d646b11354b4a9d275791 (diff) | |
download | chrome-ec-5cc18122ec756633abd58da03e81fc1ee62e3c0e.tar.gz |
Makefiles.rules: Clean up fuzz test targets rules
We want to be able to build fuzzing tests individually, and running
one test should not require to build them all.
Move the environment change to each fuzz-test-target.
BRANCH=none
BUG=none
TEST=make host-host_command_fuzz works
Change-Id: Ic80c32d4b17fd30f30e8de0cfea7eee341c68978
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1389989
Tested-by: Allen Webb <allenwebb@google.com>
Reviewed-by: Allen Webb <allenwebb@google.com>
-rw-r--r-- | Makefile.rules | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.rules b/Makefile.rules index 1ea22549c8..bf7680cd43 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -275,16 +275,16 @@ run-fuzz-test-targets=$(foreach t,$(fuzz-test-list-host),run-$(t)) .PHONY: $(fuzz-test-targets) $(run-fuzz-test-targets) +$(fuzz-test-targets): TEST_FLAG=TEST_FUZZ=y TEST_ASAN=$(TEST_ASAN) \ + TEST_MSAN=$(TEST_MSAN) TEST_UBSAN=$(TEST_UBSAN) \ + CROSS_COMPILE=$(shell echo $(HOSTCC) | grep -v ccache | \ + sed -e 's/[^-]*$$//') $(fuzz-test-targets): host-%: $(call quiet,host_test,BUILD ) -$(run-fuzz-test-targets): run-%: buildfuzztests +$(run-fuzz-test-targets): run-%: host-% $(call quiet,run_fuzz,TEST ) .PHONY: buildfuzztests -buildfuzztests: TEST_FLAG=TEST_FUZZ=y TEST_ASAN=$(TEST_ASAN) \ - TEST_MSAN=$(TEST_MSAN) TEST_UBSAN=$(TEST_UBSAN) \ - CROSS_COMPILE=$(shell echo $(HOSTCC) | grep -v ccache | \ - sed -e 's/[^-]*$$//') buildfuzztests: $(fuzz-test-targets) .PHONY: hosttests runtests |