-a test function looks like
- void test_foo() {
- if (foo != 42)
- error("foo=%d expected 42\n", foo);
- }
-extern functions with name ~ /^test/ are recognized to be
-test functions
-see Makefile.inc
-
-a benchmark function looks like
- void bench_foo(int N) {
- for (i = 0; i < N; i++)
- foo();
- }
-benchmark functions are repeatedly called with an increasing
-N until the runing time is long enough, then time/N is printed
-
-edit the generated tests.h to exclude certain tests
-see common/t.c for tests
-see common/b.c for benchmarks