summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/modmisc
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
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')
-rw-r--r--usr.bin/make/unit-tests/modmisc38
1 files changed, 0 insertions, 38 deletions
diff --git a/usr.bin/make/unit-tests/modmisc b/usr.bin/make/unit-tests/modmisc
deleted file mode 100644
index bb537558786..00000000000
--- a/usr.bin/make/unit-tests/modmisc
+++ /dev/null
@@ -1,38 +0,0 @@
-# $Id: modmisc,v 1.7 2011/04/11 15:10:15 sjg Exp $
-#
-# miscellaneous modifier tests
-
-# do not put any dirs in this list which exist on some
-# but not all target systems - an exists() check is below.
-path=:/bin:/tmp::/:.:/no/such/dir:.
-# strip cwd from path.
-MOD_NODOT=S/:/ /g:N.:ts:
-# and decorate, note that $'s need to be doubled. Also note that
-# the modifier_variable can be used with other modifiers.
-MOD_NODOTX=S/:/ /g:N.:@d@'$$d'@
-# another mod - pretend it is more interesting
-MOD_HOMES=S,/home/,/homes/,
-MOD_OPT=@d@$${exists($$d):?$$d:$${d:S,/usr,/opt,}}@
-MOD_SEP=S,:, ,g
-
-all: modvar modvarloop modsysv
-
-modsysv:
- @echo "The answer is ${libfoo.a:L:libfoo.a=42}"
-
-modvar:
- @echo "path='${path}'"
- @echo "path='${path:${MOD_NODOT}}'"
- @echo "path='${path:S,home,homes,:${MOD_NODOT}}'"
- @echo "path=${path:${MOD_NODOTX}:ts:}"
- @echo "path=${path:${MOD_HOMES}:${MOD_NODOTX}:ts:}"
-
-.for d in ${path:${MOD_SEP}:N.} /usr/xbin
-path_$d?= ${d:${MOD_OPT}:${MOD_HOMES}}/
-paths+= ${d:${MOD_OPT}:${MOD_HOMES}}
-.endfor
-
-modvarloop:
- @echo "path_/usr/xbin=${path_/usr/xbin}"
- @echo "paths=${paths}"
- @echo "PATHS=${paths:tu}"