From f24ec48b27d4cb8dd0555840206dedbb45f1423c Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 24 Oct 2026 01:17:50 +0200 Subject: Add a unit test harness and a first set of tests make check builds tests/runner from the modules that link without the io subsystem and runs it. --- tests/stubs.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/stubs.c (limited to 'tests/stubs.c') diff --git a/tests/stubs.c b/tests/stubs.c new file mode 100644 index 0000000..ae40306 --- /dev/null +++ b/tests/stubs.c @@ -0,0 +1,14 @@ +/* This software was written by Dirk Engling + It is considered beerware. Prost. Skol. Cheers or whatever. + + $id$ */ + +/* Stubs for symbols the modules under test reference but never reach along + the paths the tests exercise. If a test ever does reach one, the missing + behaviour should be supplied here rather than the test weakened. */ + +/* Opentracker */ +#include "trackerlogic.h" + +/* ot_vector.c calls this from vector_clean_list, which no test drives yet. */ +void free_peerlist(ot_peerlist *peer_list) { (void)peer_list; } -- cgit v1.3