diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 03:25:35 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 03:25:35 +0100 |
| commit | ebf57dfc03c9f3bda5ee065d45c28feb6ebb1c97 (patch) | |
| tree | 4304f3242ffbc3d34dbbda5d1d7bb232fd16d1f8 /Makefile | |
| parent | cc684e79c38e0aa5ff44820a31658f457691d979 (diff) | |
Reduce syscalls and add helper to count them
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
| @@ -110,6 +110,12 @@ $(TESTBIN): $(TEST_SOURCES) $(TEST_UNITS) $(TEST_HEADERS) | |||
| 110 | check: $(TESTBIN) $(BINARY) | 110 | check: $(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 | |||
| 116 | check-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. |
| 154 | check-all: | 160 | check-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 | ||
| 162 | BINARIES=opentracker opentracker.debug opentracker.integration opentracker.tsan proxy proxy.debug $(TESTBIN) $(TESTBIN).sanitize | 169 | BINARIES=opentracker opentracker.debug opentracker.integration opentracker.tsan proxy proxy.debug $(TESTBIN) $(TESTBIN).sanitize $(TESTBIN).poll |
| 163 | 170 | ||
| 164 | clean: | 171 | clean: |
| 165 | rm -rf $(BINARIES) $(BINARIES:=.dSYM) *.o *~ | 172 | rm -rf $(BINARIES) $(BINARIES:=.dSYM) *.o *~ |
