test1291 859 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This test case is primarily meant to verify that parsing and adding the 100K
  2. # files is a swift operation.
  3. #
  4. <testcase>
  5. <info>
  6. <keywords>
  7. HTTP
  8. HTTP PUT
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data>
  15. </data>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. none
  21. </server>
  22. <name>
  23. Attempt to upload 100K files but fail immediately
  24. </name>
  25. <command>
  26. -K log/cmd1291 --fail-early
  27. </command>
  28. <file name="log/upload-this">
  29. XXXXXXXx
  30. </file>
  31. # generate the config file
  32. <precheck>
  33. perl -e 'for(1 .. 100000) { printf("upload-file=log/upload-this\nurl=htttttp://non-existing-host.haxx.se/upload/1291\n", $_);}' > log/cmd1291;
  34. </precheck>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <errorcode>
  39. 1
  40. </errorcode>
  41. # we disable valgrind here since it takes 40+ seconds even on a fairly snappy
  42. # machine
  43. <valgrind>
  44. disable
  45. </valgrind>
  46. </verify>
  47. </testcase>