xref: /minix3/tests/README (revision 11be35a165022172ed3cea20f2b5df0307540b0e)
1*11be35a1SLionel Sambuc$NetBSD: README,v 1.4 2012/05/18 15:36:21 jruoho Exp $
2*11be35a1SLionel Sambuc
3*11be35a1SLionel SambucWhen adding new tests, please try to follow the following conventions.
4*11be35a1SLionel Sambuc
5*11be35a1SLionel Sambuc1. For library routines, including system calls, the directory structure of
6*11be35a1SLionel Sambuc   the tests should follow the directory structure of the real source tree.
7*11be35a1SLionel Sambuc   For instance, interfaces available via the C library should follow:
8*11be35a1SLionel Sambuc
9*11be35a1SLionel Sambuc	src/lib/libc/gen -> src/tests/lib/libc/gen
10*11be35a1SLionel Sambuc	src/lib/libc/sys -> src/tests/lib/libc/sys
11*11be35a1SLionel Sambuc	...
12*11be35a1SLionel Sambuc
13*11be35a1SLionel Sambuc2. Equivalently, all tests for userland utilities should try to follow their
14*11be35a1SLionel Sambuc   location in the source tree. If this can not be satisfied, the tests for
15*11be35a1SLionel Sambuc   a utility should be located under the directory to which the utility is
16*11be35a1SLionel Sambuc   installed. Thus, a test for env(1) should go to src/tests/usr.bin/env.
17*11be35a1SLionel Sambuc   Likewise, a test for tcpdump(8) should be in src/tests/usr.sbin/tcpdump,
18*11be35a1SLionel Sambuc   even though the source code for the program is located under src/external.
19*11be35a1SLionel Sambuc
20*11be35a1SLionel Sambuc3. Otherwise use your own discretion.
21