1<testcase> 2<info> 3<keywords> 4getdate 5unittest 6</keywords> 7</info> 8# 9# Server-side 10<reply> 11</reply> 12 13# Client-side 14<client> 15<server> 16none 17</server> 18# tool is what to use instead of 'curl' 19<tool> 20lib517 21</tool> 22 23 <name> 24curl_getdate() testing 25 </name> 26 <command> 27nothing 28</command> 29</client> 30 31# 32# Verify data after the test has been "shot" 33<verify> 34<stdout> 350: Sun, 06 Nov 1994 08:49:37 GMT => 784111777 361: Sunday, 06-Nov-94 08:49:37 GMT => 784111777 372: Sun Nov 6 08:49:37 1994 => 784111777 383: 06 Nov 1994 08:49:37 GMT => 784111777 394: 06-Nov-94 08:49:37 GMT => 784111777 405: Nov 6 08:49:37 1994 => 784111777 416: 06 Nov 1994 08:49:37 => 784111777 427: 06-Nov-94 08:49:37 => 784111777 438: 1994 Nov 6 08:49:37 => 784111777 449: GMT 08:49:37 06-Nov-94 Sunday => 784111777 4510: 94 6 Nov 08:49:37 => 784111777 4611: 1994 Nov 6 => 784080000 4712: 06-Nov-94 => 784080000 4813: Sun Nov 6 94 => 784080000 4914: 1994.Nov.6 => 784080000 5015: Sun/Nov/6/94/GMT => 784080000 5116: Sun, 06 Nov 1994 08:49:37 CET => 784108177 5217: 06 Nov 1994 08:49:37 EST => 784129777 5318: Sun, 12 Sep 2004 15:05:58 -0700 => 1095026758 5419: Sat, 11 Sep 2004 21:32:11 +0200 => 1094931131 5520: 20040912 15:05:58 -0700 => 1095026758 5621: 20040911 +0200 => 1094853600 5722: Thu, 01-Jan-1970 00:59:59 GMT => 3599 5823: Thu, 01-Jan-1970 01:00:00 GMT => 3600 5924: Sat, 15-Apr-17 21:01:22 GMT => 1492290082 6025: Thu, 19-Apr-2007 16:00:00 GMT => 1176998400 6126: Wed, 25 Apr 2007 21:02:13 GMT => 1177534933 6227: Thu, 19/Apr\2007 16:00:00 GMT => 1176998400 6328: Fri, 1 Jan 2010 01:01:50 GMT => 1262307710 6429: Wednesday, 1-Jan-2003 00:00:00 GMT => 1041379200 6530: , 1-Jan-2003 00:00:00 GMT => 1041379200 6631: 1-Jan-2003 00:00:00 GMT => 1041379200 6732: 1-Jan-2003 00:00:00 GMT => 1041379200 6833: Wed,18-Apr-07 22:50:12 GMT => 1176936612 6934: WillyWonka , 18-Apr-07 22:50:12 GMT => -1 7035: WillyWonka , 18-Apr-07 22:50:12 => -1 7136: WillyWonka , 18-apr-07 22:50:12 => -1 7237: Mon, 18-Apr-1977 22:50:13 GMT => 230251813 7338: Mon, 18-Apr-77 22:50:13 GMT => 230251813 7439: "Sat, 15-Apr-17\"21:01:22\"GMT" => 1492290082 7540: Partyday, 18- April-07 22:50:12 => -1 7641: Partyday, 18 - Apri-07 22:50:12 => -1 7742: Wednes, 1-Januar-2003 00:00:00 GMT => -1 7843: Sat, 15-Apr-17 21:01:22 => 1492290082 7944: Sat, 15-Apr-17 21:01:22 GMT-2 => 1492290082 8045: Sat, 15-Apr-17 21:01:22 GMT BLAH => 1492290082 8146: Sat, 15-Apr-17 21:01:22 GMT-0400 => 1492290082 8247: Sat, 15-Apr-17 21:01:22 GMT-0400 (EDT) => 1492290082 8348: Sat, 15-Apr-17 21:01:22 DST => -1 8449: Sat, 15-Apr-17 21:01:22 -0400 => 1492304482 8550: Sat, 15-Apr-17 21:01:22 (hello there) => -1 8651: Sat, 15-Apr-17 21:01:22 11:22:33 => -1 8752: Sat, 15-Apr-17 ::00 21:01:22 => -1 8853: Sat, 15-Apr-17 boink:z 21:01:22 => -1 8954: Sat, 15-Apr-17 91:22:33 21:01:22 => -1 9055: Thu Apr 18 22:50:12 2007 GMT => 1176936612 9156: 22:50:12 Thu Apr 18 2007 GMT => 1176936612 9257: Thu 22:50:12 Apr 18 2007 GMT => 1176936612 9358: Thu Apr 22:50:12 18 2007 GMT => 1176936612 9459: Thu Apr 18 22:50:12 2007 GMT => 1176936612 9560: Thu Apr 18 2007 22:50:12 GMT => 1176936612 9661: Thu Apr 18 2007 GMT 22:50:12 => 1176936612 9762: Sat, 15-Apr-17 21:01:22 GMT => 1492290082 9863: 15-Sat, Apr-17 21:01:22 GMT => 1492290082 9964: 15-Sat, Apr 21:01:22 GMT 17 => 1492290082 10065: 15-Sat, Apr 21:01:22 GMT 2017 => 1492290082 10166: 15 Apr 21:01:22 2017 => 1492290082 10267: 15 17 Apr 21:01:22 => 1492290082 10368: Apr 15 17 21:01:22 => 1492290082 10469: Apr 15 21:01:22 17 => 1492290082 10570: 2017 April 15 21:01:22 => -1 10671: 15 April 2017 21:01:22 => -1 10772: 98 April 17 21:01:22 => -1 10873: Thu, 012-Aug-2008 20:49:07 GMT => 1218574147 10974: Thu, 999999999999-Aug-2007 20:49:07 GMT => -1 11075: Thu, 12-Aug-2007 20:61:99999999999 GMT => -1 11176: IAintNoDateFool => -1 11277: Thu Apr 18 22:50 2007 GMT => 1176936600 11378: 20110623 12:34:56 => 1308832496 11479: 20110632 12:34:56 => -1 11580: 20110623 56:34:56 => -1 11681: 20111323 12:34:56 => -1 11782: 20110623 12:34:79 => -1 11883: Wed, 31 Dec 2008 23:59:60 GMT => 1230768000 119</stdout> 120 121# This test case previously tested an overflow case ("2094 Nov 6 => 122# 2147483647") for 32bit time_t, but since some systems have 64bit time_t and 123# handles this (returning 3939840000), and some 64bit-time_t systems don't 124# handle this and return -1 for this, it turned very tricky to write a fine 125# test case and thus it is now removed until we have a way to write test cases 126# for this kind of things. 127 128</verify> 129</testcase> 130