<keywords>
FILE
--remote-time
-notxml
</keywords>
</info>
# Verify data after the test has been "shot"
<verify>
<postcheck>
-%PERL %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir && \
-%PERL -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 946728000)'
+%PERL %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir %LOGDIR/curl%TESTNUMBER.out 946728000
</postcheck>
</verify>
</testcase>
<keywords>
SFTP
--remote-time
-notxml
</keywords>
</info>
-#
# Server-side
<reply>
</reply>
-#
# Client-side
<client>
<server>
</command>
</client>
-#
# Verify data after the test has been "shot"
<verify>
<postcheck>
-%PERL %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir && \
-%PERL -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 978264000)'
+%PERL %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir %LOGDIR/curl%TESTNUMBER.out 978264000
</postcheck>
</verify>
</testcase>
}
elsif($ARGV[0] eq "postprocess") {
my $dirname = $ARGV[1];
- my $logfile = $ARGV[2];
# Clean up the test directory
if($^O eq 'cygwin') {
rmdir $dirname || die "$!";
+ if($#ARGV >= 3) { # Verify mtime if requested
+ my $checkfile = $ARGV[2];
+ my $expected_mtime = int($ARGV[3]);
+ my $mtime = (stat($checkfile))[9];
+ exit ($mtime != $expected_mtime);
+ }
+
+ my $logfile = $ARGV[2];
if($logfile && -s $logfile) {
# Process the directory file to remove all information that
# could be inconsistent from one test run to the next (e.g.