aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test517
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-15 21:49:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-15 21:49:35 +0000
commit66f6f430567526305c6fcc8c4ec2ae19f4a84e08 (patch)
tree56db71876b64f85c56aeb425240b48d0734bfd07 /tests/data/test517
parent86f059dcfbb32ee7ee25c7232457c558ea9f8c4f (diff)
added test case 517: 22 tests of the curl_getdate() function
Diffstat (limited to 'tests/data/test517')
-rw-r--r--tests/data/test51752
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/data/test517 b/tests/data/test517
new file mode 100644
index 000000000..c38f41cc8
--- /dev/null
+++ b/tests/data/test517
@@ -0,0 +1,52 @@
+#
+# Server-side
+<reply>
+</reply>
+
+# Client-side
+<client>
+<server>
+none
+</server>
+# tool is what to use instead of 'curl'
+<tool>
+lib517
+</tool>
+
+ <name>
+curl_getdate() testing
+ </name>
+ <command>
+nothing
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<stdout>
+0: Sun, 06 Nov 1994 08:49:37 GMT => 784111777
+1: Sunday, 06-Nov-94 08:49:37 GMT => 784111777
+2: Sun Nov 6 08:49:37 1994 => 784111777
+3: 06 Nov 1994 08:49:37 GMT => 784111777
+4: 06-Nov-94 08:49:37 GMT => 784111777
+5: Nov 6 08:49:37 1994 => 784111777
+6: 06 Nov 1994 08:49:37 => 784111777
+7: 06-Nov-94 08:49:37 => 784111777
+8: 1994 Nov 6 08:49:37 => 784111777
+9: GMT 08:49:37 06-Nov-94 Sunday => 784111777
+10: 94 6 Nov 08:49:37 => 784111777
+11: 1994 Nov 6 => 784080000
+12: 06-Nov-94 => 784080000
+13: Sun Nov 6 94 => 784080000
+14: 1994.Nov.6 => 784080000
+15: Sun/Nov/6/94/GMT => 784080000
+16: Sun, 06 Nov 1994 08:49:37 CET => 784108177
+17: 06 Nov 1994 08:49:37 EST => 784129777
+18: Sun, 12 Sep 2004 15:05:58 -0700 => 1095026758
+19: Sat, 11 Sep 2004 21:32:11 +0200 => 1094931131
+20: 20040912 15:05:58 -0700 => 1095026758
+21: 20040911 +0200 => 1094853600
+22: 2094 Nov 6 => 2147483647
+</stdout>
+</verify>