test1446 749 B

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