test517 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. <command>
  19. nothing
  20. </command>
  21. </client>
  22. #
  23. # Verify data after the test has been "shot"
  24. <verify>
  25. <stdout mode="text">
  26. 0: Sun, 06 Nov 1994 08:49:37 GMT => 784111777
  27. 1: Sunday, 06-Nov-94 08:49:37 GMT => 784111777
  28. 2: Sun Nov 6 08:49:37 1994 => 784111777
  29. 3: 06 Nov 1994 08:49:37 GMT => 784111777
  30. 4: 06-Nov-94 08:49:37 GMT => 784111777
  31. 5: Nov 6 08:49:37 1994 => 784111777
  32. 6: 06 Nov 1994 08:49:37 => 784111777
  33. 7: 06-Nov-94 08:49:37 => 784111777
  34. 8: 1994 Nov 6 08:49:37 => 784111777
  35. 9: GMT 08:49:37 06-Nov-94 Sunday => 784111777
  36. 10: 94 6 Nov 08:49:37 => 784111777
  37. 11: 1994 Nov 6 => 784080000
  38. 12: 06-Nov-94 => 784080000
  39. 13: Sun Nov 6 94 => 784080000
  40. 14: 1994.Nov.6 => 784080000
  41. 15: Sun/Nov/6/94/GMT => 784080000
  42. 16: Sun, 06 Nov 1994 08:49:37 CET => 784108177
  43. 17: 06 Nov 1994 08:49:37 EST => 784129777
  44. 18: Sun, 12 Sep 2004 15:05:58 -0700 => 1095026758
  45. 19: Sat, 11 Sep 2004 21:32:11 +0200 => 1094931131
  46. 20: 20040912 15:05:58 -0700 => 1095026758
  47. 21: 20040911 +0200 => 1094853600
  48. 22: Thu, 01-Jan-1970 00:59:59 GMT => 3599
  49. 23: Thu, 01-Jan-1970 01:00:00 GMT => 3600
  50. 24: Sat, 15-Apr-17 21:01:22 GMT => 1492290082
  51. 25: Thu, 19-Apr-2007 16:00:00 GMT => 1176998400
  52. 26: Wed, 25 Apr 2007 21:02:13 GMT => 1177534933
  53. 27: Thu, 19/Apr\2007 16:00:00 GMT => 1176998400
  54. 28: Fri, 1 Jan 2010 01:01:50 GMT => 1262307710
  55. 29: Wednesday, 1-Jan-2003 00:00:00 GMT => 1041379200
  56. 30: , 1-Jan-2003 00:00:00 GMT => 1041379200
  57. 31: 1-Jan-2003 00:00:00 GMT => 1041379200
  58. 32: 1-Jan-2003 00:00:00 GMT => 1041379200
  59. 33: Wed,18-Apr-07 22:50:12 GMT => 1176936612
  60. 34: WillyWonka , 18-Apr-07 22:50:12 GMT => -1
  61. 35: WillyWonka , 18-Apr-07 22:50:12 => -1
  62. 36: WillyWonka , 18-apr-07 22:50:12 => -1
  63. 37: Mon, 18-Apr-1977 22:50:13 GMT => 230251813
  64. 38: Mon, 18-Apr-77 22:50:13 GMT => 230251813
  65. 39: "Sat, 15-Apr-17\"21:01:22\"GMT" => 1492290082
  66. 40: Partyday, 18- April-07 22:50:12 => -1
  67. 41: Partyday, 18 - Apri-07 22:50:12 => -1
  68. 42: Wednes, 1-Januar-2003 00:00:00 GMT => -1
  69. 43: Sat, 15-Apr-17 21:01:22 => 1492290082
  70. 44: Sat, 15-Apr-17 21:01:22 GMT-2 => 1492290082
  71. 45: Sat, 15-Apr-17 21:01:22 GMT BLAH => 1492290082
  72. 46: Sat, 15-Apr-17 21:01:22 GMT-0400 => 1492290082
  73. 47: Sat, 15-Apr-17 21:01:22 GMT-0400 (EDT) => 1492290082
  74. 48: Sat, 15-Apr-17 21:01:22 DST => -1
  75. 49: Sat, 15-Apr-17 21:01:22 -0400 => 1492304482
  76. 50: Sat, 15-Apr-17 21:01:22 (hello there) => -1
  77. 51: Sat, 15-Apr-17 21:01:22 11:22:33 => -1
  78. 52: Sat, 15-Apr-17 ::00 21:01:22 => -1
  79. 53: Sat, 15-Apr-17 boink:z 21:01:22 => -1
  80. 54: Sat, 15-Apr-17 91:22:33 21:01:22 => -1
  81. 55: Thu Apr 18 22:50:12 2007 GMT => 1176936612
  82. 56: 22:50:12 Thu Apr 18 2007 GMT => 1176936612
  83. 57: Thu 22:50:12 Apr 18 2007 GMT => 1176936612
  84. 58: Thu Apr 22:50:12 18 2007 GMT => 1176936612
  85. 59: Thu Apr 18 22:50:12 2007 GMT => 1176936612
  86. 60: Thu Apr 18 2007 22:50:12 GMT => 1176936612
  87. 61: Thu Apr 18 2007 GMT 22:50:12 => 1176936612
  88. 62: Sat, 15-Apr-17 21:01:22 GMT => 1492290082
  89. 63: 15-Sat, Apr-17 21:01:22 GMT => 1492290082
  90. 64: 15-Sat, Apr 21:01:22 GMT 17 => 1492290082
  91. 65: 15-Sat, Apr 21:01:22 GMT 2017 => 1492290082
  92. 66: 15 Apr 21:01:22 2017 => 1492290082
  93. 67: 15 17 Apr 21:01:22 => 1492290082
  94. 68: Apr 15 17 21:01:22 => 1492290082
  95. 69: Apr 15 21:01:22 17 => 1492290082
  96. 70: 2017 April 15 21:01:22 => -1
  97. 71: 15 April 2017 21:01:22 => -1
  98. 72: 98 April 17 21:01:22 => -1
  99. 73: Thu, 012-Aug-2008 20:49:07 GMT => 1218574147
  100. 74: Thu, 999999999999-Aug-2007 20:49:07 GMT => -1
  101. 75: Thu, 12-Aug-2007 20:61:99999999999 GMT => -1
  102. 76: IAintNoDateFool => -1
  103. 77: Thu Apr 18 22:50 2007 GMT => 1176936600
  104. 78: 20110623 12:34:56 => 1308832496
  105. 79: 20110632 12:34:56 => -1
  106. 80: 20110623 56:34:56 => -1
  107. 81: 20111323 12:34:56 => -1
  108. 82: 20110623 12:34:79 => -1
  109. 83: Wed, 31 Dec 2008 23:59:60 GMT => 1230768000
  110. </stdout>
  111. # This test case previously testes an overflow case ("2094 Nov 6 =>
  112. # 2147483647") for 32bit time_t, but since some systems have 64bit time_t and
  113. # handles this (returning 3939840000), and some 64bit-time_t systems don't
  114. # handle this and returns -1 for this, it turned very tricky to write a fine
  115. # test case and thus it is now removed until we have a way to write test cases
  116. # for this kind of things.
  117. </verify>
  118. </testcase>