summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/modmisc.exp
diff options
context:
space:
mode:
authorapb <apb@NetBSD.org>2014-08-21 13:44:51 +0000
committerapb <apb@NetBSD.org>2014-08-21 13:44:51 +0000
commite0e29fb9b1efba6df79dd53a6089feb13bd02da7 (patch)
tree94572ccf65b7976abf4579f055e0e9bc9643dd1d /usr.bin/make/unit-tests/modmisc.exp
parentb6020910a92470d3ef334170d1605556bc498286 (diff)
Give each group of tests its own output file.
* Rename each sub-makefile to *.mk; * Add a *.exp file of expected output for each sub-makefile; * Remove test.exp, which is replaced by all the other *.exp files. * Use suffix rules to generate *.rawout and *.out files for each test case. * Rewrite the test and accept targets to adapt to the new way. The old (now removed) test.exp file is almost identical to the concatenation (in the correct order) of all the new *.exp files. There are expected differences in makefile names embedded in the output, and the new "exit status" lines. Some old "*** Error code 1 (ignored)" lines are also removed (replaced by new "exit status 1" lines).
Diffstat (limited to 'usr.bin/make/unit-tests/modmisc.exp')
-rw-r--r--usr.bin/make/unit-tests/modmisc.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/make/unit-tests/modmisc.exp b/usr.bin/make/unit-tests/modmisc.exp
new file mode 100644
index 00000000000..e406647bc41
--- /dev/null
+++ b/usr.bin/make/unit-tests/modmisc.exp
@@ -0,0 +1,10 @@
+path=':/bin:/tmp::/:.:/no/such/dir:.'
+path='/bin:/tmp:/:/no/such/dir'
+path='/bin:/tmp:/:/no/such/dir'
+path='/bin':'/tmp':'/':'/no/such/dir'
+path='/bin':'/tmp':'/':'/no/such/dir'
+path_/usr/xbin=/opt/xbin/
+paths=/bin /tmp / /no/such/dir /opt/xbin
+PATHS=/BIN /TMP / /NO/SUCH/DIR /OPT/XBIN
+The answer is 42
+exit status 0