mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
31a29fc6bd
To ensure Perl invocations within tests call the same Perl binary used for running the tests, as specified or auto-detected via `PERL` env (autotools) or `PERL_EXECUTABLE` setting (cmake). Instead of the first `perl` executable found in `PATH`.) Cherry-picked from #14949 Closes #15097
45 lines
867 B
Plaintext
45 lines
867 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
SFTP
|
|
SFTP put
|
|
--ftp-create-dirs
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
sftp
|
|
</server>
|
|
<name>
|
|
SFTP put with --ftp-create-dirs
|
|
</name>
|
|
<command>
|
|
--ftp-create-dirs --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -T %LOGDIR/file%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.dir/upload.%TESTNUMBER --insecure
|
|
</command>
|
|
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
|
Test data
|
|
for ssh upload test
|
|
</file>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<upload>
|
|
Test data
|
|
for ssh upload test
|
|
</upload>
|
|
<postcheck>
|
|
%PERL %SRCDIR/libtest/test610.pl move %PWD/%LOGDIR/test%TESTNUMBER.dir/upload.%TESTNUMBER %PWD/%LOGDIR/upload.%TESTNUMBER rmdir %PWD/%LOGDIR/test%TESTNUMBER.dir
|
|
</postcheck>
|
|
</verify>
|
|
</testcase>
|