aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1027
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-04-18 22:31:52 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-04-18 22:31:52 +0000
commit7abf50a5c006cfd2cc8da58b7c0550b0db371d1f (patch)
tree007e1f2bf9d375aeadaaf2b662194b2efc53eda6 /tests/data/test1027
parentd3f46eb61b4e405fbcc120df253cd3ac3fe2b155 (diff)
Added test cases 1026 and 1027 to do some rudimentary tests on the --manual
and --help options.
Diffstat (limited to 'tests/data/test1027')
-rw-r--r--tests/data/test102739
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/data/test1027 b/tests/data/test1027
new file mode 100644
index 000000000..4299d7435
--- /dev/null
+++ b/tests/data/test1027
@@ -0,0 +1,39 @@
+<testcase>
+<info>
+<keywords>
+--help
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+none
+</server>
+ <name>
+curl --help
+ </name>
+ <command>
+--help
+</command>
+# Search for these two sentinel lines in the help output; if they are found,
+# then chances are good the entire help is there.
+<postcheck>
+perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(Usage: curl )|(--version\s*Show version)/, <IN>); exit ($lines != 2);' log/stdout1027
+</postcheck>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+2
+</errorcode>
+</verify>
+</testcase>