about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-05-12 23:19:51 +0200
committerhexcoder- <heiko@hexco.de>2020-05-12 23:19:51 +0200
commit5273c61cd84fb5db4bd4c97509f60511c7a9bb6d (patch)
tree7cf63e095d167ab6025767785f7ce05e8566bf30 /GNUmakefile
parent0c1c947aaf758368558dadd027b8a6503ba2c20f (diff)
downloadafl++-5273c61cd84fb5db4bd4c97509f60511c7a9bb6d.tar.gz
Darwin tests: grep --binary-files=text for laf-intel and skipping of unittests
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index d3e9275c..95bc1072 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -252,7 +252,7 @@ help:
 	@echo "deepclean: cleans everything including downloads"
 	@echo "code-format: format the code, do this before you commit and send a PR please!"
 	@echo "tests: this runs the test framework. It is more catered for the developers, but if you run into problems this helps pinpointing the problem"
-	@echo "unit: perform unit tests (based on cmocka)"
+	@echo "unit: perform unit tests (based on cmocka and GNU linker)"
 	@echo "document: creates afl-fuzz-document which will only do one run and save all manipulated inputs into out/queue/mutations"
 	@echo "help: shows these build options :-)"
 	@echo "=========================================="
@@ -385,8 +385,17 @@ unit_preallocable: test/unittests/unit_preallocable.o
 unit_clean:
 	@rm -f ./test/unittests/unit_preallocable ./test/unittests/unit_list ./test/unittests/unit_maybe_alloc test/unittests/*.o
 
+ifneq "$(shell uname)" "Darwin"
+
 unit: unit_maybe_alloc unit_preallocable unit_list unit_clean
 
+else
+
+unit:
+	@echo [-] unit tests are skipped on Darwin \(lacks GNU linker feature --wrap\)
+
+endif
+
 code-format:
 	./.custom-format.py -i src/*.c
 	./.custom-format.py -i include/*.h