test614 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SFTP
  5. pre-quote
  6. directory
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <datacheck>
  13. d????????? N U U N ??? N NN:NN .
  14. d????????? N U U N ??? N NN:NN ..
  15. d????????? N U U N ??? N NN:NN asubdir
  16. -r-?r-?r-? 1 U U 37 Jan 1 2000 plainfile.txt
  17. -r-?r-?r-? 1 U U 47 Dec 31 2000 rofile.txt
  18. </datacheck>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. sftp
  25. </server>
  26. <precheck>
  27. perl %SRCDIR/libtest/test613.pl prepare %PWD/log/test614.dir
  28. </precheck>
  29. <name>
  30. SFTP pre-quote chmod
  31. </name>
  32. <command>
  33. --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "chmod 444 %PWD/log/test614.dir/plainfile.txt" sftp://%HOSTIP:%SSHPORT%PWD/log/test614.dir/ --insecure
  34. </command>
  35. <postcheck>
  36. perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test614.dir %PWD/log/curl614.out
  37. </postcheck>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <valgrind>
  43. disable
  44. </valgrind>
  45. </verify>
  46. </testcase>