summaryrefslogtreecommitdiff
path: root/cmdtest.1.in
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-09-11 19:20:52 +0100
committerLars Wirzenius <liw@liw.fi>2011-09-11 19:20:52 +0100
commit95b19ae0eff9483b53b1359e4aed2443a609b09c (patch)
tree0d54b9dd2affb53219659f645bd04ee1c55b9068 /cmdtest.1.in
parentff9e1291582eb2f7c07abad5396a4e4c25c25247 (diff)
downloadcmdtest-95b19ae0eff9483b53b1359e4aed2443a609b09c.tar.gz
Fix example to use $COMMAND and -c option.
Diffstat (limited to 'cmdtest.1.in')
-rw-r--r--cmdtest.1.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmdtest.1.in b/cmdtest.1.in
index f9aea7b..8e392bc 100644
--- a/cmdtest.1.in
+++ b/cmdtest.1.in
@@ -41,7 +41,7 @@ containing the following content:
.IP
.nf
#!/bin/sh
-echo hello, world
+$COMMAND hello, world
.fi
.PP
Also create the file
@@ -53,7 +53,7 @@ hello, world
Then you can run the tests:
.IP
.nf
-$ cmdtest echo-tests
+$ cmdtest echo-tests -c /bin/echo
test 1/1
1/1 tests OK, 0 failures
.fi
@@ -63,7 +63,7 @@ If you change the stdout file to be something else,
will report the differences:
.IP
.nf
-$ cmdtest echo-tests
+$ cmdtest echo-tests -c /bin/echo
FAIL: hello: stdout diff:
--- echo-tests/hello.stdout 2011-09-11 19:14:47 +0100
+++ echo-tests/hello.stdout-actual 2011-09-11 19:14:49 +0100