projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix math test gen script
[libc-test]
/
README
diff --git
a/README
b/README
index
80ca81e
..
ce2ba8e
100644
(file)
--- a/
README
+++ b/
README
@@
-1,16
+1,15
@@
-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
see http://git.etalabs.net/cgi-bin/gitweb.cgi
-see http://www.etalabs.net/libc-bench.html
build tests:
build tests:
- cp
Makefile.conf.def Makefile.conf
- # edit
Makefile.conf
+ cp
dist/config.mak .
+ # edit
config.mak
make
run tests:
make
run tests:
-
./
t
+
make
t
run benchmarks:
run benchmarks:
-
./
b
+
make
b
framework:
framework:
@@
-18,10
+17,6
@@
the only hook in the test framework is error(...) which
prints a formatted message and sets the test to failed
see common/test.h
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)
a test function looks like
void test_foo() {
if (foo != 42)
@@
-29,7
+24,6
@@
a test function looks like
}
extern functions with name ~ /^test/ are recognized to be
test functions
}
extern functions with name ~ /^test/ are recognized to be
test functions
-see Makefile.inc
a benchmark function looks like
void bench_foo(int N) {
a benchmark function looks like
void bench_foo(int N) {
@@
-37,8
+31,8
@@
a benchmark function looks like
foo();
}
benchmark functions are repeatedly called with an increasing
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 run
n
ing time is long enough, then time/N is printed
-
edit the generated tests.h to exclude certain test
s
-see common/t.c for tests
-see common/b.c for benchmarks
+
see Makefile.inc for build system detail
s
+see common/t.c for test
detail
s
+see common/b.c for benchmark
detail
s