1 simple libc tests based on the libc-testsuit
2 and libc-bench of dalias
3 see http://git.etalabs.net/cgi-bin/gitweb.cgi
4 see http://www.etalabs.net/libc-bench.html
7 cp Makefile.conf.def Makefile.conf
17 the only hook in the test framework is error(...) which
18 prints a formatted message and sets the test to failed
21 in the root directory make builds an executable with all tests
22 in a src/* directory make builds only local tests
25 a test function looks like
28 error("foo=%d expected 42\n", foo);
30 extern functions with name ~ /^test/ are recognized to be
34 a benchmark function looks like
35 void bench_foo(int N) {
36 for (i = 0; i < N; i++)
39 benchmark functions are repeatedly called with an increasing
40 N until the runing time is long enough, then time/N is printed
42 edit the generated tests.h to exclude certain tests
43 see common/t.c for tests
44 see common/b.c for benchmarks