initial commit
[libc-test] / README
1 simple libc tests based on the libc-testsuit of dalias
2 see http://git.etalabs.net/cgi-bin/gitweb.cgi
3
4 build tests:
5         cp Makefile.conf.def Makefile.conf
6         # edit Makefile.conf
7         make
8 run tests:
9         ./t
10
11 about the framework:
12
13 the only hook in the test framework is error(...) which
14 prints a formatted message and sets the test to failed
15 see common/test.h
16
17 in the root dir make builds an executable with all tests
18 in a src/* dir make builds only local tests
19 see Makefile.inc
20
21 a test function looks like
22         void test_foo() {
23                 if (foo != 42)
24                         error("foo=%d expected 42\n", foo);
25         }
26 extern functions with name ~ /^test/ are recognized to be
27 test functions
28 see Makefile.inc
29
30 edit the generated main.h to exclude certain tests
31 see common/main.c