summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3ce127e..2e52367 100644
--- a/Makefile
+++ b/Makefile
@@ -110,6 +110,12 @@ $(TESTBIN): $(TEST_SOURCES) $(TEST_UNITS) $(TEST_HEADERS)
110check: $(TESTBIN) $(BINARY) 110check: $(TESTBIN) $(BINARY)
111 ./$(TESTBIN) 111 ./$(TESTBIN)
112 112
113$(TESTBIN).poll: $(TEST_SOURCES) $(TEST_UNITS) $(TEST_HEADERS)
114 $(CC) -o $@ $(CFLAGS_test) -DOT_EVENT_FORCE_POLL $(TEST_SOURCES) $(TEST_UNITS)
115
116check-poll: $(TESTBIN).poll
117 ./$(TESTBIN).poll ot_event
118
113# The same unit tests under the sanitizers. Use clang over $(CC) because the 119# The same unit tests under the sanitizers. Use clang over $(CC) because the
114# two toolchains do not check the same things 120# two toolchains do not check the same things
115# Override CC_sanitize to use another compiler. 121# Override CC_sanitize to use another compiler.
@@ -153,13 +159,14 @@ check-tsan: opentracker.tsan
153# Everything, cheapest first, so a quick failure comes back quickly. 159# Everything, cheapest first, so a quick failure comes back quickly.
154check-all: 160check-all:
155 $(MAKE) check 161 $(MAKE) check
162 $(MAKE) check-poll
156 $(MAKE) check-sanitize 163 $(MAKE) check-sanitize
157 $(MAKE) check-integration 164 $(MAKE) check-integration
158 $(MAKE) check-tsan 165 $(MAKE) check-tsan
159 166
160.PHONY: all check check-sanitize check-integration check-tsan check-all clean install 167.PHONY: all check check-poll check-sanitize check-integration check-tsan check-all clean install
161 168
162BINARIES=opentracker opentracker.debug opentracker.integration opentracker.tsan proxy proxy.debug $(TESTBIN) $(TESTBIN).sanitize 169BINARIES=opentracker opentracker.debug opentracker.integration opentracker.tsan proxy proxy.debug $(TESTBIN) $(TESTBIN).sanitize $(TESTBIN).poll
163 170
164clean: 171clean:
165 rm -rf $(BINARIES) $(BINARIES:=.dSYM) *.o *~ 172 rm -rf $(BINARIES) $(BINARIES:=.dSYM) *.o *~