| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: test-variants.mk,v 1.1 2022/02/05 00:20:48 rillig Exp $ | | 1 | # $NetBSD: test-variants.mk,v 1.2 2022/03/03 20:03:19 rillig Exp $ |
2 | # | | 2 | # |
3 | # Build several variants of make and run the tests on them. | | 3 | # Build several variants of make and run the tests on them. |
4 | # | | 4 | # |
5 | # The output of this test suite must be inspected manually to see the | | 5 | # The output of this test suite must be inspected manually to see the |
6 | # interesting details. The main purpose is to list the available build | | 6 | # interesting details. The main purpose is to list the available build |
7 | # options. | | 7 | # options. |
8 | | | 8 | |
9 | .MAIN: usage | | 9 | .MAIN: usage |
10 | usage: | | 10 | usage: |
11 | @echo 'usage: ${MAKE} -f ${MAKEFILE} list' | | 11 | @echo 'usage: ${MAKE} -f ${MAKEFILE} list' |
12 | @echo ' ${MAKE} -f ${MAKEFILE} all' | | 12 | @echo ' ${MAKE} -f ${MAKEFILE} all' |
13 | @echo ' ${MAKE} -f ${MAKEFILE} test...' | | 13 | @echo ' ${MAKE} -f ${MAKEFILE} test...' |
14 | | | 14 | |
| @@ -36,26 +36,36 @@ ENV.gcc9= USE_GCC9="yes" | | | @@ -36,26 +36,36 @@ ENV.gcc9= USE_GCC9="yes" |
36 | # Use emalloc for memory allocation. | | 36 | # Use emalloc for memory allocation. |
37 | TESTS+= emalloc | | 37 | TESTS+= emalloc |
38 | ENV.emalloc= TOOLDIR="" | | 38 | ENV.emalloc= TOOLDIR="" |
39 | | | 39 | |
40 | # NetBSD 10 fails with: | | 40 | # NetBSD 10 fails with: |
41 | # filemon_dev.c:93:19: error: 'FILEMON_SET_FD' undeclared | | 41 | # filemon_dev.c:93:19: error: 'FILEMON_SET_FD' undeclared |
42 | TESTS+= filemon-dev | | 42 | TESTS+= filemon-dev |
43 | ENV.filemon-dev= USE_FILEMON="dev" | | 43 | ENV.filemon-dev= USE_FILEMON="dev" |
44 | SKIP.filemon-dev= yes | | 44 | SKIP.filemon-dev= yes |
45 | | | 45 | |
46 | TESTS+= filemon-ktrace | | 46 | TESTS+= filemon-ktrace |
47 | ENV.filemon-ktrace= USE_FILEMON="ktrace" | | 47 | ENV.filemon-ktrace= USE_FILEMON="ktrace" |
48 | | | 48 | |
| | | 49 | TESTS+= filemon-none |
| | | 50 | ENV.filemon-none= USE_FILEMON="no" |
| | | 51 | # The following tests only fail due to the extra variable in the debug log. |
| | | 52 | SKIP_TESTS.filemon-none= \ |
| | | 53 | opt-debug-graph1 \ |
| | | 54 | opt-debug-graph2 \ |
| | | 55 | opt-debug-graph3 \ |
| | | 56 | suff-main-several \ |
| | | 57 | suff-transform-debug |
| | | 58 | |
49 | TESTS+= no-meta | | 59 | TESTS+= no-meta |
50 | ENV.no-meta= USE_META="no" | | 60 | ENV.no-meta= USE_META="no" |
51 | SKIP_TESTS.no-meta= depsrc-meta meta-cmd-cmp | | 61 | SKIP_TESTS.no-meta= depsrc-meta meta-cmd-cmp |
52 | | | 62 | |
53 | TESTS+= cleanup | | 63 | TESTS+= cleanup |
54 | CPPFLAGS.cleanup= -DCLEANUP | | 64 | CPPFLAGS.cleanup= -DCLEANUP |
55 | | | 65 | |
56 | TESTS+= debug-refcnt | | 66 | TESTS+= debug-refcnt |
57 | CPPFLAGS.debug-refcnt= -DDEBUG_REFCNT | | 67 | CPPFLAGS.debug-refcnt= -DDEBUG_REFCNT |
58 | | | 68 | |
59 | TESTS+= debug-hash | | 69 | TESTS+= debug-hash |
60 | CPPFLAGS.debug-hash= -DDEBUG_HASH_LOOKUP | | 70 | CPPFLAGS.debug-hash= -DDEBUG_HASH_LOOKUP |
61 | SKIP_TESTS.debug-hash= opt-debug-hash # mixes regular and debug output | | 71 | SKIP_TESTS.debug-hash= opt-debug-hash # mixes regular and debug output |