diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2018-07-28 11:17:07 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2018-07-28 11:17:07 +0100 |
commit | 3d20a3974c62a284325f8e6f12b7fbb50b4607b7 (patch) | |
tree | c8a2b63c15dd0effdf30eed5792ac15dce55037d /test | |
parent | 42459f72c1f0e3dcdc1686447f1522c4fe9e3134 (diff) | |
download | netsurf-3d20a3974c62a284325f8e6f12b7fbb50b4607b7.tar.gz netsurf-3d20a3974c62a284325f8e6f12b7fbb50b4607b7.tar.bz2 |
Support ASAN and UBSAN in Makefiles
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile index a5f023bdc..4f9dd22c9 100644 --- a/test/Makefile +++ b/test/Makefile @@ -141,6 +141,7 @@ BASE_TESTCFLAGS := -std=c99 -g \ -D_XOPEN_SOURCE=600 \ -Itest -Iinclude -Icontent/handlers -Ifrontends -I. -I.. \ -Dnsgtk \ + $(SAN_FLAGS) \ $(shell pkg-config --cflags libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc) \ $(LIB_CFLAGS) TESTCFLAGS := $(BASE_TESTCFLAGS) \ @@ -149,6 +150,7 @@ TESTCFLAGS := $(BASE_TESTCFLAGS) \ TESTLDFLAGS := -L$(TESTROOT) \ $(shell pkg-config --libs libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc) -lz \ + $(SAN_FLAGS) \ $(LIB_LDFLAGS)\ $(COV_LDFLAGS) @@ -202,11 +204,12 @@ $(eval $(foreach SOURCE,$(sort $(filter %.c,$(NOCOV_TESTSOURCES))), \ $(call compile_test_nocov_target_c,$(SOURCE),$(subst /,_,$(SOURCE:.c=.o)),$(subst /,_,$(SOURCE:.c=.d))))) -.PHONY:test coverage +.PHONY:test coverage sanitize test: $(TESTROOT)/created $(TESTROOT)/libmalloc_fig.so $(addsuffix _test,$(TESTS)) coverage: test +sanitize: test $(TESTROOT)/created: $(VQ)echo " MKDIR: $(TESTROOT)" |