summaryrefslogtreecommitdiff
path: root/tests/gentest/esyscmd.1.m4
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gentest/esyscmd.1.m4')
-rwxr-xr-xtests/gentest/esyscmd.1.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/gentest/esyscmd.1.m4 b/tests/gentest/esyscmd.1.m4
new file mode 100755
index 00000000..856620e4
--- /dev/null
+++ b/tests/gentest/esyscmd.1.m4
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# gentest/esyscmd.1.m4 is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 3315
+
+. ${srcdir}/defs
+
+cat <<\EOF >in
+define(`vice', `esyscmd(grep Vice ../Makefile)')
+vice
+EOF
+
+cat <<\EOF >ok
+
+# Ty Coon, President of Vice
+
+EOF
+
+$M4 -d in >out
+
+$CMP -s out ok
+