xref: /curl/tests/data/test1446 (revision 31a29fc6)
1<testcase>
2<info>
3<keywords>
4SFTP
5--remote-time
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12</reply>
13
14#
15# Client-side
16<client>
17<server>
18sftp
19</server>
20<precheck>
21%PERL %SRCDIR/libtest/test613.pl prepare %PWD/%LOGDIR/test%TESTNUMBER.dir
22</precheck>
23<name>
24SFTP with --remote-time
25</name>
26<command>
27--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.dir/rofile.txt --insecure --remote-time
28</command>
29</client>
30
31#
32# Verify data after the test has been "shot"
33<verify>
34<postcheck>
35%PERL %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir && \
36%PERL -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 978264000)'
37</postcheck>
38</verify>
39</testcase>
40