summaryrefslogtreecommitdiff
path: root/tests/esyscmd.1.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/esyscmd.1.test')
-rwxr-xr-xtests/esyscmd.1.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/esyscmd.1.test b/tests/esyscmd.1.test
new file mode 100755
index 00000000..b32c6ced
--- /dev/null
+++ b/tests/esyscmd.1.test
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# esyscmd.1.test is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 3316
+
+. ${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
+