mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:23:30 +03:00
tests: Add tests for new --help
This commit is a part of "--help me if you can" Closes #5680
This commit is contained in:
parent
aa8777f63f
commit
a86cc7e2ab
5 changed files with 203 additions and 1 deletions
44
tests/data/test1463
Normal file
44
tests/data/test1463
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FILE
|
||||
--help
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
none
|
||||
</server>
|
||||
<features>
|
||||
file
|
||||
</features>
|
||||
<name>
|
||||
curl file category --help
|
||||
</name>
|
||||
<command>
|
||||
--help file
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
0
|
||||
</errorcode>
|
||||
<stdout mode="text">
|
||||
Usage: curl [options...] <url>
|
||||
file: FILE protocol options
|
||||
-I, --head Show document info only
|
||||
-r, --range <range> Retrieve only the bytes within RANGE
|
||||
</stdout>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue