From 584142892f7d5fb3100f3c0ef8e479d472b8c3c7 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 29 Apr 2017 10:16:06 +0200 Subject: tests: added --remote-time tests for remaining protocols that support it --- tests/data/test1444 | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tests/data/test1444 (limited to 'tests/data/test1444') diff --git a/tests/data/test1444 b/tests/data/test1444 new file mode 100644 index 000000000..7eec21b99 --- /dev/null +++ b/tests/data/test1444 @@ -0,0 +1,52 @@ + + + +FTP +EPSV +RETR +--remote-time + + +# Server-side + + +file data + + +213 20090213233130 + + + +# Client-side + + +ftp + + +FTP with --remote-time + + +ftp://%HOSTIP:%FTPPORT/1444 --remote-time + +# Verify the mtime of the file. The mtime is specifically chosen to be an even +# number so that it can be represented exactly on a FAT filesystem. + +perl -e 'exit((stat("log/curl1444.out"))[9] != 1234567890)' + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +MDTM 1444 +EPSV +TYPE I +SIZE 1444 +RETR 1444 +QUIT + + + -- cgit v1.2.3