summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-27 19:06:20 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-27 19:06:20 +0100
commitdf5557705764d5e8f904a31d549fc037f5b1cf47 (patch)
tree6182dc49f1a414ea3fe33ba324d274283135581b
parentc9183b611399d419d68610c40a2b6289dc2a610a (diff)
While we're at it with the dynamic analyzers, add a tsan
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d16e220..1a8912b 100644
--- a/Makefile
+++ b/Makefile
@@ -162,15 +162,26 @@ opentracker.integration: $(SOURCES) $(HEADERS)
162check-integration: opentracker.integration 162check-integration: opentracker.integration
163 OPENTRACKER=./opentracker.integration $(PYTHON) -m unittest discover -s tests/integration 163 OPENTRACKER=./opentracker.integration $(PYTHON) -m unittest discover -s tests/integration
164 164
165# The same black box tests against a ThreadSanitizer build
166CFLAGS_tsan=$(CFLAGS) $(OPTS_debug) $(FEATURES_integration) -fsanitize=thread -fno-omit-frame-pointer
167LDFLAGS_tsan=$(LDFLAGS) -fsanitize=thread
168
169opentracker.tsan: $(SOURCES) $(HEADERS)
170 $(CC) -o $@ $(CFLAGS_tsan) $(SOURCES) $(LDFLAGS_tsan)
171
172check-tsan: opentracker.tsan
173 OPENTRACKER=./opentracker.tsan $(PYTHON) -m unittest discover -s tests/integration
174
165# Everything, cheapest first, so a quick failure comes back quickly. 175# Everything, cheapest first, so a quick failure comes back quickly.
166check-all: 176check-all:
167 $(MAKE) check 177 $(MAKE) check
168 $(MAKE) check-sanitize 178 $(MAKE) check-sanitize
169 $(MAKE) check-integration 179 $(MAKE) check-integration
180 $(MAKE) check-tsan
170 181
171.PHONY: all check check-sanitize check-integration check-all clean install 182.PHONY: all check check-sanitize check-integration check-tsan check-all clean install
172 183
173BINARIES=opentracker opentracker.debug opentracker.integration proxy proxy.debug $(TESTBIN) $(TESTBIN).sanitize 184BINARIES=opentracker opentracker.debug opentracker.integration opentracker.tsan proxy proxy.debug $(TESTBIN) $(TESTBIN).sanitize
174 185
175clean: 186clean:
176 rm -rf $(BINARIES) $(BINARIES:=.dSYM) *.o *~ 187 rm -rf $(BINARIES) $(BINARIES:=.dSYM) *.o *~