From 6a6c0e7a734ea4bc0ad45e18c24ebc5732dc9009 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 5 Apr 2005 21:07:27 +0000 Subject: [PATCH] test time-conditioned FTP uploads --- tests/data/Makefile.am | 2 +- tests/data/test247 | 39 ++++++++++++++++++++++++++++++++++ tests/data/test248 | 48 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 tests/data/test247 create mode 100644 tests/data/test248 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 46a8465f1..5d8fbb463 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -33,7 +33,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test241 test242 test519 test214 test215 test216 test217 test218 \ test199 test225 test226 test227 test230 test231 test232 test228 \ test229 test233 test234 test235 test236 test520 test237 test238 \ - test239 test243 test245 test246 + test239 test243 test245 test246 test247 test248 # The following tests have been removed from the dist since they no longer # work. We need to fix the test suite's FTPS server first, then bring them diff --git a/tests/data/test247 b/tests/data/test247 new file mode 100644 index 000000000..0985b8682 --- /dev/null +++ b/tests/data/test247 @@ -0,0 +1,39 @@ + + +213 20030409102659 + + + +# Client-side + + +ftp + + +FTP upload time condition evaluates TRUE => skip upload + + +data + to + see +that FTP +works + so does it? + + +ftp://%HOSTIP:%FTPPORT/247 -T log/test247.txt -z "apr 1 2005 08:00:00" + + + +# Verify data after the test has been "shot" + + + + +USER anonymous +PASS curl_by_daniel@haxx.se +PWD +MDTM 247 +QUIT + + diff --git a/tests/data/test248 b/tests/data/test248 new file mode 100644 index 000000000..3fc3fc14b --- /dev/null +++ b/tests/data/test248 @@ -0,0 +1,48 @@ + + +213 20050409102659 + + + +# Client-side + + +ftp + + +FTP upload time condition evaluates FALSE => upload anyway + + +data + to + see +that FTP +works + so does it? + + +ftp://%HOSTIP:%FTPPORT/248 -T log/test248.txt -z "apr 1 2005 08:00:00" + + + +# Verify data after the test has been "shot" + + +data + to + see +that FTP +works + so does it? + + +USER anonymous +PASS curl_by_daniel@haxx.se +PWD +MDTM 248 +EPSV +TYPE I +STOR 248 +QUIT + +