test1148 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. progressbar
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  16. ETag: "21025-dc7-39462498"
  17. Accept-Ranges: bytes
  18. Content-Length: 60
  19. Connection: close
  20. Content-Type: text/html
  21. Funny-head: yesyes
  22. zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
  23. </data>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. progress-bar
  33. </name>
  34. <command>
  35. http://%HOSTIP:%HTTPPORT/1148 -# --stderr log/stderrlog1148
  36. </command>
  37. <precheck>
  38. perl -e '$ENV{"LC_NUMERIC"} = "en_US.UTF-8"; print "Test requires point as decimal separator" if system("./libtest/chkdecimalpoint");'
  39. </precheck>
  40. <setenv>
  41. LC_ALL=
  42. LC_NUMERIC=en_US.UTF-8
  43. </setenv>
  44. </client>
  45. #
  46. <verify>
  47. <strip>
  48. ^User-Agent:.*
  49. </strip>
  50. <protocol>
  51. GET /1148 HTTP/1.1
  52. Host: %HOSTIP:%HTTPPORT
  53. Accept: */*
  54. </protocol>
  55. # This allows the last 4 letters of the bar to get updated without it
  56. # matters. We're mostly checking the width of it anyway.
  57. <file name="log/stderrlog1148" mode="text">
  58. bar 100.0%
  59. </file>
  60. <stripfile>
  61. s/####################################################################..../bar/
  62. </stripfile>
  63. </verify>
  64. </testcase>