X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=README;h=2857b53e693dee2bf10a6108e765e5e7d703da1d;hb=0c7d465f8b04e9db61c2c9a32510799c19ec0503;hp=856e2a8756cd08a50a526f4cd5c8099ab4e05922;hpb=d14d36762cc2131357345f960f7bdf86af140af8;p=libc-test diff --git a/README b/README index 856e2a8..2857b53 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ -simple libc tests based on the libc-testsuit -and libc-bench of dalias +simple libc tests +based on the libc-testsuit and libc-bench of dalias see http://git.etalabs.net/cgi-bin/gitweb.cgi build tests: @@ -11,17 +11,14 @@ run tests: run benchmarks: ./b -about the framework: +framework: the only hook in the test framework is error(...) which prints a formatted message and sets the test to failed see common/test.h -benchmark functions are repeatedly called with increasing -N until runing time is long enough, then time/N is printed - -in the root dir make builds an executable with all tests -in a src/* dir make builds only local tests +in the root directory make builds an executable with all tests +in a src/* directory make builds only local tests see Makefile.inc a test function looks like @@ -33,6 +30,14 @@ extern functions with name ~ /^test/ are recognized to be test functions see Makefile.inc -edit the generated main.h to exclude certain tests +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