summaryrefslogtreecommitdiff
path: root/modules/modpath3.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/modpath3.test')
-rwxr-xr-xmodules/modpath3.test30
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/modpath3.test b/modules/modpath3.test
new file mode 100755
index 00000000..6064265b
--- /dev/null
+++ b/modules/modpath3.test
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# test.test is part of the GNU m4 testsuite
+
+. ${srcdir}/defs
+. ../../tests/config.sh
+
+# cannot perform test without --with-modules
+#test -z "$WITH_MODULES" && exit 77
+
+
+
+cat <<'EOF' >in
+test
+Dumpdef: dumpdef(`test')
+EOF
+
+cat <<'EOF' >ok
+Test module called.
+Dumpdef:
+EOF
+
+cat <<'EOF' >okerr
+test: <test>
+EOF
+
+
+M4PATH=$srcdir:$srcdir/../tests $M4 -m test -M `cd $srcdir; pwd` -d in >out 2>err
+sed -e "s,^[^:]*[lt-]*m4[.ex]*:,m4:," err >sederr && mv sederr err
+$CMP -s out ok && $CMP -s err okerr