diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-22 12:43:42 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-22 12:43:42 +0100 |
| commit | 9347ecbb29636c38fd9914e756d416f1d4b45978 (patch) | |
| tree | 38ff3b29184a2570c65cf02a8619e7a5934640d1 /core/Makefile | |
| parent | b5302c039b91ccb8ebb35b7cf2a321577e156c41 (diff) | |
| download | vis-9347ecbb29636c38fd9914e756d416f1d4b45978.tar.gz vis-9347ecbb29636c38fd9914e756d416f1d4b45978.tar.xz | |
test/core: add make {a,ub}san targets
Diffstat (limited to 'core/Makefile')
| -rw-r--r-- | core/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile index c96a972..3808725 100644 --- a/core/Makefile +++ b/core/Makefile @@ -36,6 +36,12 @@ debug: clean coverage: clean $(MAKE) CFLAGS_EXTRA='--coverage' +asan: clean + $(MAKE) CFLAGS_EXTRA='-fsanitize=address' + +ubsan: clean + $(MAKE) CFLAGS_EXTRA='-fsanitize=undefined' + valgrind: clean ${ALL} @for test in ${ALL}; do \ valgrind --leak-check=full --log-file="$$test.valgrind" "./$$test"; \ @@ -55,4 +61,4 @@ clean: @rm -f *.gcov *.gcda *.gcno @rm -f *.valgrind -.PHONY: clean debug coverage tis valgrind +.PHONY: clean debug coverage tis valgrind asan ubsan |
