test517 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply>
  5. </reply>
  6. # Client-side
  7. <client>
  8. <server>
  9. none
  10. </server>
  11. # tool is what to use instead of 'curl'
  12. <tool>
  13. lib517
  14. </tool>
  15. <name>
  16. curl_getdate() testing
  17. </name>
  18. # Explicitly set the time zone to a known good one, in case the user is
  19. # using one of the 'right' zones that take into account leap seconds
  20. # which causes the cookie expiry times to be different.
  21. <setenv>
  22. TZ=GMT
  23. </setenv>
  24. <command>
  25. nothing
  26. </command>
  27. </client>
  28. #
  29. # Verify data after the test has been "shot"
  30. <verify>
  31. <stdout mode="text">
  32. 0: Sun, 06 Nov 1994 08:49:37 GMT => 784111777
  33. 1: Sunday, 06-Nov-94 08:49:37 GMT => 784111777
  34. 2: Sun Nov 6 08:49:37 1994 => 784111777
  35. 3: 06 Nov 1994 08:49:37 GMT => 784111777
  36. 4: 06-Nov-94 08:49:37 GMT => 784111777
  37. 5: Nov 6 08:49:37 1994 => 784111777
  38. 6: 06 Nov 1994 08:49:37 => 784111777
  39. 7: 06-Nov-94 08:49:37 => 784111777
  40. 8: 1994 Nov 6 08:49:37 => 784111777
  41. 9: GMT 08:49:37 06-Nov-94 Sunday => 784111777
  42. 10: 94 6 Nov 08:49:37 => 784111777
  43. 11: 1994 Nov 6 => 784080000
  44. 12: 06-Nov-94 => 784080000
  45. 13: Sun Nov 6 94 => 784080000
  46. 14: 1994.Nov.6 => 784080000
  47. 15: Sun/Nov/6/94/GMT => 784080000
  48. 16: Sun, 06 Nov 1994 08:49:37 CET => 784108177
  49. 17: 06 Nov 1994 08:49:37 EST => 784129777
  50. 18: Sun, 12 Sep 2004 15:05:58 -0700 => 1095026758
  51. 19: Sat, 11 Sep 2004 21:32:11 +0200 => 1094931131
  52. 20: 20040912 15:05:58 -0700 => 1095026758
  53. 21: 20040911 +0200 => 1094853600
  54. </stdout>
  55. # This test case previously testes an overflow case ("2094 Nov 6 =>
  56. # 2147483647") for 32bit time_t, but since some systems have 64bit time_t and
  57. # handles this (returning 3939840000), and some 64bit-time_t systems don't
  58. # handle this and returns -1 for this, it turned very tricky to write a fine
  59. # test case and thus it is now removed until we have a way to write test cases
  60. # for this kind of things.
  61. </verify>
  62. </testcase>