|
nsz |
fe6029 |
simple libc tests
|
|
nsz |
58c843 |
based on the libc-testsuit of dalias
|
|
nsz |
58c843 |
see http://git.musl-libc.org/cgit
|
|
nsz |
7308b3 |
|
|
nsz |
7308b3 |
build tests:
|
|
nsz |
b36267 |
cp dist/config.mak .
|
|
nsz |
b36267 |
# edit config.mak
|
|
nsz |
7308b3 |
make
|
|
nsz |
7308b3 |
run tests:
|
|
nsz |
58c843 |
make run
|
|
nsz |
7308b3 |
|
|
nsz |
7d87d3 |
framework:
|
|
nsz |
7308b3 |
|
|
nsz |
58c843 |
the convention is that each test is in a separate file
|
|
nsz |
58c843 |
at a path like src/directory/file.c with its own main
|
|
nsz |
7308b3 |
|
|
nsz |
58c843 |
the test should return 0 on success and non-0 on failure
|
|
nsz |
7308b3 |
|
|
nsz |
58c843 |
to simplify things there is a Makefile.inc that can
|
|
nsz |
58c843 |
be included from src/directory/Makefile when the
|
|
nsz |
58c843 |
above convention is used in src/directory
|
|
nsz |
7d87d3 |
|