]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use TEST_BIN_DIR instead of hard-coded paths
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Jan 2021 18:30:45 +0000 (13:30 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Jan 2021 18:36:37 +0000 (13:36 -0500)
src/bin/fuzzer.mk

index 2ecc45401f9278e22e1e858fa5b96abb71fa5eab..1825421310cab32c0ecc038af7d14f2a080cef51 100644 (file)
@@ -36,6 +36,8 @@ src/tests/fuzzer-corpus/$(PROTOCOL):
                tar -xf $(PROTOCOL).tar; \
        fi
 
+$(TEST_BIN_DIR)/fuzzer_$(PROTOCOL): $(BUILD_DIR)/lib/local/libfreeradius-$(PROTOCOL).la
+
 #
 #  Run the fuzzer binary against the fuzzer corpus data files.
 #
@@ -48,11 +50,11 @@ src/tests/fuzzer-corpus/$(PROTOCOL):
 #  This will track values across compare instructions.  But it can slow down scanning by 2x, and
 #  increase the size of the corpus by several times.
 #
-fuzzer.$(PROTOCOL): ./build/bin/local/fuzzer_$(PROTOCOL) | src/tests/fuzzer-corpus/$(PROTOCOL)
+fuzzer.$(PROTOCOL): $(TEST_BIN_DIR)/fuzzer_$(PROTOCOL) | src/tests/fuzzer-corpus/$(PROTOCOL)
        ${Q}$(TEST_BIN)/fuzzer_$(PROTOCOL) -max_len=512 -D share/dictionary src/tests/fuzzer-corpus/$(PROTOCOL)
 
 #
 #  tests add a 10s timeout.  This is so that we can see if the fuzzers run _at all_.
 #
-test.fuzzer.$(PROTOCOL): ./build/bin/local/fuzzer_$(PROTOCOL) | src/tests/fuzzer-corpus/$(PROTOCOL)
+test.fuzzer.$(PROTOCOL): $(TEST_BIN_DIR)/fuzzer_$(PROTOCOL) | src/tests/fuzzer-corpus/$(PROTOCOL)
        ${Q}$(TEST_BIN)/fuzzer_$(PROTOCOL) -max_len=512 -timeout=10 -D share/dictionary src/tests/fuzzer-corpus/$(PROTOCOL)