test1027 652 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <testcase>
  2. <info>
  3. <keywords>
  4. --help
  5. </keywords>
  6. </info>
  7. #
  8. # Server-side
  9. <reply>
  10. </reply>
  11. #
  12. # Client-side
  13. <client>
  14. <server>
  15. none
  16. </server>
  17. <name>
  18. curl --help
  19. </name>
  20. <command>
  21. --help
  22. </command>
  23. # Search for these two sentinel lines in the help output; if they are found,
  24. # then chances are good the entire help is there.
  25. <postcheck>
  26. perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(Usage: curl )|(--version\s*Show version)/, <IN>); exit ($lines != 2); # Let this file pass an XML syntax check: </IN>' log/stdout%TESTNUMBER
  27. </postcheck>
  28. </client>
  29. #
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <errorcode>
  33. 0
  34. </errorcode>
  35. </verify>
  36. </testcase>