1 $FreeBSD: src/lib/libc_r/test/README,v 1.1.2.1 2000/07/17 22:18:32 jasone Exp $
2 $DragonFly: src/lib/libc_r/test/README,v 1.2 2003/06/17 04:26:48 dillon Exp $
4 This test suite is meant to test general functionality of pthreads, as well as
5 provide a simple framework for regression tests. In general, this test suite
6 can be used with any pthreads library, but in reality there are a number of
7 libc_r-specific aspects to this test suite which would require some effort to
8 get around if testing another pthreads library.
10 This test suite assumes that libc_r is installed.
12 There are two forms of test that the 'verify' script understands. The simpler
13 form is the diff format, where the output of the test program is diff'ed with
14 the correspondingly named .exp file. If there is diff output, the test fails.
15 The sequence test format is somewhat more complex, and is documented in the
16 command line usage output for verify. The advantage of this format is that it
17 allows multiple tests to pass/fail within one program.
19 There is no driving need for test naming consistency, but the existing tests
20 generally follow these conventions:
22 <name>_d.c <name>_d.exp : Diff mode C test and expected output file.
23 <name>_s.c : Sequence mode C test.
24 <name>_b*.c : Back end C program used by perl tests.
25 <name>_d.pl <name>_d.pl.exp : Diff mode perl test and expected output file.
26 <name>_s.pl : Sequence mode perl test.
28 <name> is something descriptive, such as "pr14685" in the case of a PR-related
29 regression test, or "mutex" in the case of a test of mutexes.