see http://git.etalabs.net/cgi-bin/gitweb.cgi
build tests:
- cp Makefile.conf.def Makefile.conf
- # edit Makefile.conf
+ cp dist/config.mak .
+ # edit config.mak
make
run tests:
- ./t
+ make
run benchmarks:
- ./b
+ make b
framework:
prints a formatted message and sets the test to failed
see common/test.h
-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
void test_foo() {
if (foo != 42)
}
extern functions with name ~ /^test/ are recognized to be
test functions
-see Makefile.inc
a benchmark function looks like
void bench_foo(int N) {
foo();
}
benchmark functions are repeatedly called with an increasing
-N until the runing time is long enough, then time/N is printed
+N until the running 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
+see Makefile.inc for build system details
+see common/t.c for test details
+see common/b.c for benchmark details