Changed regression tests to write to /tmp instead of in the src dir.
[dragonfly.git] / usr.bin / make / tests / README
1 $DragonFly: src/usr.bin/make/tests/README,v 1.3 2005/02/26 11:58:04 okumoto Exp $
2
3 This directory contains regresion tests for make(1).
4
5 The tests are invoked via the test.sh script.
6         % test.sh [-v] [-m path_to_make_binary] command
7
8         clean   - Remove the results and the other temp files.
9
10         compare - Check if results of the test match the expected
11                   output from stdout, stderr, and the status.
12
13         desc    - print description of test
14
15         diff    - Output the diffs from the tests and the expected
16                   stdout, stderr, and the status files.
17
18         run     - Invoke test, compare, and clean in sequence.
19
20         test    - Invoke the test code
21
22         update  - Copy the output of the last test run as the expected
23                   output from stdout, stderr, and the status.
24
25 Example:
26         % sh test.sh -m `pwd`/../obj/make run
27
28 Directory layout
29 ----------------
30 common.sh               - common code
31 test.sh                 - top level test script.
32 basic/test.sh           - 2nd level test script.
33 variables/test.sh       - 2nd level test script.
34
35 basic/
36       t0/test.sh        - regression test
37       t1/test.sh        - regression test
38       t2/test.sh        - regression test
39 variables/
40           t0/test.sh    - regression test
41           t1/test.sh    - regression test
42
43 Each test directory should contain a test.sh script
44 and the expected output files.
45