summaryrefslogtreecommitdiff
path: root/modules/modpath1.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/modpath1.test')
-rwxr-xr-xmodules/modpath1.test26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/modpath1.test b/modules/modpath1.test
new file mode 100755
index 00000000..2722ed43
--- /dev/null
+++ b/modules/modpath1.test
@@ -0,0 +1,26 @@
+#!/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 ${srcdir}/test.m4 >in
+
+cat <<'EOF' >ok
+Test module loaded.
+Test module called.
+Dumpdef:
+EOF
+
+cat <<'EOF' >okerr
+test: <test>
+EOF
+
+
+M4PATH=$srcdir:$srcdir/../tests $M4 -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