mirror of
https://github.com/curl/curl.git
synced 2026-08-26 08:23:36 +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
61
tests/data/test1462
Normal file
61
tests/data/test1462
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
--help
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
none
|
||||
</server>
|
||||
<name>
|
||||
curl invalid category --help
|
||||
</name>
|
||||
<command>
|
||||
--help sdfafdsfadsfsd
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
0
|
||||
</errorcode>
|
||||
<stdout mode="text">
|
||||
Usage: curl [options...] <url>
|
||||
Invalid category provided, here is a list of all categories:
|
||||
|
||||
auth Different types of authentication methods
|
||||
connection Low level networking operations
|
||||
curl The command line tool itself
|
||||
dns General DNS options
|
||||
file FILE protocol options
|
||||
ftp FTP protocol options
|
||||
http HTTP and HTTPS protocol options
|
||||
imap IMAP protocol options
|
||||
misc Options that don't fit into any other category
|
||||
output The output of curl
|
||||
pop3 POP3 protocol options
|
||||
post HTTP Post specific options
|
||||
proxy All options related to proxies
|
||||
scp SCP protocol options
|
||||
sftp SFTP protocol options
|
||||
smtp SMTP protocol options
|
||||
ssh SSH protocol options
|
||||
telnet TELNET protocol options
|
||||
tftp TFTP protocol options
|
||||
tls All TLS/SSL related options
|
||||
upload All options for uploads
|
||||
verbose Options related to any kind of command line output of curl
|
||||
</stdout>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue