diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-24 03:43:34 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-24 03:43:34 +0200 |
| commit | ba54aca3a47df0e8c7afde968bd5f7479372a404 (patch) | |
| tree | 45c9a42cc13efaf3baa5aacb4297f52fd0adf734 /Makefile | |
| parent | 131d8b1a79749ca0977a16532c0738fdfc767001 (diff) | |
factor out accesslist parser to fix a potential out of bound read and add tests to the accesslist unit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -105,10 +105,13 @@ proxy.debug: $(OBJECTS_proxy_debug) $(HEADERS) | |||
| 105 | # has to. tests/stubs.c supplies the few symbols those modules reference but | 105 | # has to. tests/stubs.c supplies the few symbols those modules reference but |
| 106 | # the tests never reach. | 106 | # the tests never reach. |
| 107 | TESTBIN=tests/runner | 107 | TESTBIN=tests/runner |
| 108 | TEST_SOURCES=tests/runner.c tests/test.c tests/stubs.c tests/t_scan_urlencoded_query.c tests/t_iovec.c tests/t_vector.c tests/t_random.c tests/t_hex.c | 108 | TEST_SOURCES=tests/runner.c tests/test.c tests/stubs.c tests/t_scan_urlencoded_query.c tests/t_iovec.c tests/t_vector.c tests/t_random.c tests/t_hex.c tests/t_accesslist.c |
| 109 | TEST_UNITS=scan_urlencoded_query.c ot_iovec.c ot_vector.c ot_random.c ot_hex.c | 109 | TEST_UNITS=scan_urlencoded_query.c ot_iovec.c ot_vector.c ot_random.c ot_hex.c ot_accesslist.c |
| 110 | TEST_HEADERS=tests/test.h $(HEADERS) | 110 | TEST_HEADERS=tests/test.h $(HEADERS) |
| 111 | CFLAGS_test = $(CFLAGS) -I. -g -O1 $(FEATURES) | 111 | # Tests reach code that sits behind feature flags, so the units under test are |
| 112 | # built with those features enabled. A test binary is not a production binary. | ||
| 113 | FEATURES_test=$(FEATURES) -DWANT_ACCESSLIST_BLACK | ||
| 114 | CFLAGS_test = $(CFLAGS) -I. -g -O1 $(FEATURES_test) | ||
| 112 | 115 | ||
| 113 | $(TESTBIN): $(TEST_SOURCES) $(TEST_UNITS) $(TEST_HEADERS) | 116 | $(TESTBIN): $(TEST_SOURCES) $(TEST_UNITS) $(TEST_HEADERS) |
| 114 | $(CC) -o $@ $(CFLAGS_test) $(TEST_SOURCES) $(TEST_UNITS) | 117 | $(CC) -o $@ $(CFLAGS_test) $(TEST_SOURCES) $(TEST_UNITS) |
