1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 09:08:49 -05:00

Don't use Windows path %PWD for SSH tests

All these tests failed on Windows because something like
sftp://%HOSTIP:%SSHPORT%PWD/
expanded to
sftp://127.0.0.1:1234c:/msys64/home/bla/curl
and then curl complained about the port number ending with a letter.

Use the original POSIX path instead of the Windows path created in
checksystem to fix this.

Closes https://github.com/curl/curl/pull/2920
This commit is contained in:
Marcel Raad 2018-08-30 08:35:21 +02:00
parent c10f5b02a8
commit b842fa3110
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02
48 changed files with 49 additions and 47 deletions

View File

@ -24,7 +24,7 @@ perl %SRCDIR/libtest/test613.pl prepare %PWD/log/test1446.dir
SFTP with --remote-time SFTP with --remote-time
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/test1446.dir/rofile.txt --insecure --remote-time --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test1446.dir/rofile.txt --insecure --remote-time
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test1446.dir && \ perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test1446.dir && \

View File

@ -30,7 +30,7 @@ sftp
TFTP RRQ followed by SFTP retrieval followed by FILE followed by SCP retrieval then again in reverse order TFTP RRQ followed by SFTP retrieval followed by FILE followed by SCP retrieval then again in reverse order
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: tftp://%HOSTIP:%TFTPPORT//2004 sftp://%HOSTIP:%SSHPORT%PWD/log/test2004.txt file://localhost/%PWD/log/test2004.txt scp://%HOSTIP:%SSHPORT%PWD/log/test2004.txt file://localhost/%PWD/log/test2004.txt sftp://%HOSTIP:%SSHPORT%PWD/log/test2004.txt tftp://%HOSTIP:%TFTPPORT//2004 --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: tftp://%HOSTIP:%TFTPPORT//2004 sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test2004.txt file://localhost/%PWD/log/test2004.txt scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test2004.txt file://localhost/%PWD/log/test2004.txt sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test2004.txt tftp://%HOSTIP:%TFTPPORT//2004 --insecure
</command> </command>
<file name="log/test2004.txt"> <file name="log/test2004.txt">
This is test data This is test data

View File

@ -24,7 +24,7 @@ lib582
SFTP upload using multi interface SFTP upload using multi interface
</name> </name>
<command> <command>
Sftp://%HOSTIP:%SSHPORT%PWD/log/upload582.txt %PWD/log/file582.txt %USER: Sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/upload582.txt %PWD/log/file582.txt %USER:
</command> </command>
<file name="log/file582.txt"> <file name="log/file582.txt">
Moooooooooooo Moooooooooooo

View File

@ -29,7 +29,7 @@ SFTP with multi interface, remove handle early
# name resolve will cause it to return rather quickly and thus we could trigger # name resolve will cause it to return rather quickly and thus we could trigger
# the problem we're looking to verify. # the problem we're looking to verify.
<command> <command>
sftp://localhost:%SSHPORT%PWD/log/upload583.txt %USER: sftp://localhost:%SSHPORT%POSIX_PWD/log/upload583.txt %USER:
</command> </command>
</client> </client>

View File

@ -24,7 +24,7 @@ sftp
SFTP retrieval SFTP retrieval
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file600.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file600.txt --insecure
</command> </command>
<file name="log/file600.txt"> <file name="log/file600.txt">
Test data Test data

View File

@ -24,7 +24,7 @@ scp
SCP retrieval SCP retrieval
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/file601.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file601.txt --insecure
</command> </command>
<file name="log/file601.txt"> <file name="log/file601.txt">
Test data Test data

View File

@ -21,7 +21,7 @@ sftp
SFTP put SFTP put
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file602.txt sftp://%HOSTIP:%SSHPORT%PWD/log/upload.602 --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file602.txt sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/upload.602 --insecure
</command> </command>
<file name="log/file602.txt"> <file name="log/file602.txt">
Test data Test data

View File

@ -21,7 +21,7 @@ scp
SCP upload SCP upload
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file603.txt scp://%HOSTIP:%SSHPORT%PWD/log/upload.603 --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file603.txt scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/upload.603 --insecure
</command> </command>
<file name="log/file603.txt"> <file name="log/file603.txt">
Test data Test data

View File

@ -16,7 +16,7 @@ sftp
SFTP retrieval of nonexistent file SFTP retrieval of nonexistent file
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/not-a-valid-file-moooo --insecure
</command> </command>
</client> </client>

View File

@ -16,7 +16,7 @@ scp
SCP retrieval of nonexistent file SCP retrieval of nonexistent file
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%POSIX_PWD/not-a-valid-file-moooo --insecure
</command> </command>
</client> </client>

View File

@ -16,7 +16,7 @@ sftp
SFTP invalid user login SFTP invalid user login
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u not-a-valid-user: sftp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo --insecure --key curl_client_key --pubkey curl_client_key.pub -u not-a-valid-user: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/not-a-valid-file-moooo --insecure
</command> </command>
</client> </client>

View File

@ -16,7 +16,7 @@ scp
SCP invalid user login SCP invalid user login
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u not-a-valid-user: scp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo --insecure --key curl_client_key --pubkey curl_client_key.pub -u not-a-valid-user: scp://%HOSTIP:%SSHPORT%POSIX_PWD/not-a-valid-file-moooo --insecure
</command> </command>
</client> </client>

View File

@ -24,7 +24,7 @@ sftp
SFTP post-quote rename SFTP post-quote rename
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rename %PWD/log/file608.txt %PWD/log/file608-renamed.txt" sftp://%HOSTIP:%SSHPORT%PWD/log/file608.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rename %PWD/log/file608.txt %PWD/log/file608-renamed.txt" sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file608.txt --insecure
</command> </command>
# Verify that the file was renamed properly, then rename the file back to what # Verify that the file was renamed properly, then rename the file back to what
# it was so the verify section works and the file can be cleaned up. # it was so the verify section works and the file can be cleaned up.

View File

@ -25,7 +25,7 @@ sftp
SFTP post-quote mkdir failure SFTP post-quote mkdir failure
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-mkdir %PWD/log/file609.txt" sftp://%HOSTIP:%SSHPORT%PWD/log/file609.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-mkdir %PWD/log/file609.txt" sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file609.txt --insecure
</command> </command>
<file name="log/file609.txt"> <file name="log/file609.txt">
Test file for mkdir test Test file for mkdir test

View File

@ -27,7 +27,7 @@ perl %SRCDIR/libtest/test610.pl mkdir %PWD/log/test610.dir
SFTP post-quote rmdir SFTP post-quote rmdir
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rmdir %PWD/log/test610.dir" sftp://%HOSTIP:%SSHPORT%PWD/log/file610.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rmdir %PWD/log/test610.dir" sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file610.txt --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test610.pl gone %PWD/log/test610.dir perl %SRCDIR/libtest/test610.pl gone %PWD/log/test610.dir

View File

@ -27,7 +27,7 @@ perl %SRCDIR/libtest/test610.pl mkdir %PWD/log/test611.dir
SFTP post-quote rename SFTP post-quote rename
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rename %PWD/log/test611.dir %PWD/log/test611.new" sftp://%HOSTIP:%SSHPORT%PWD/log/file611.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rename %PWD/log/test611.dir %PWD/log/test611.new" sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file611.txt --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test611.new perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test611.new

View File

@ -24,7 +24,7 @@ sftp
SFTP post-quote remove file SFTP post-quote remove file
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file612.txt -Q "-rm %PWD/log/file612.txt" sftp://%HOSTIP:%SSHPORT%PWD/log/upload.612 --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file612.txt -Q "-rm %PWD/log/file612.txt" sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/upload.612 --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test610.pl gone %PWD/log/test612.txt perl %SRCDIR/libtest/test610.pl gone %PWD/log/test612.txt

View File

@ -31,7 +31,7 @@ perl %SRCDIR/libtest/test613.pl prepare %PWD/log/test613.dir
SFTP directory retrieval SFTP directory retrieval
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/test613.dir/ --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test613.dir/ --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test613.dir %PWD/log/curl613.out perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test613.dir %PWD/log/curl613.out

View File

@ -32,7 +32,7 @@ perl %SRCDIR/libtest/test613.pl prepare %PWD/log/test614.dir
SFTP pre-quote chmod SFTP pre-quote chmod
</name> </name>
<command> <command>
--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 --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "chmod 444 %PWD/log/test614.dir/plainfile.txt" sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test614.dir/ --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test614.dir %PWD/log/curl614.out perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test614.dir %PWD/log/curl614.out

View File

@ -20,7 +20,7 @@ perl %SRCDIR/libtest/test613.pl prepare %PWD/log/test615.dir
SFTP put remote failure SFTP put remote failure
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file615.txt sftp://%HOSTIP:%SSHPORT%PWD/log/test615.dir/rofile.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file615.txt sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test615.dir/rofile.txt --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test615.dir perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test615.dir

View File

@ -23,7 +23,7 @@ sftp
SFTP retrieval of empty file SFTP retrieval of empty file
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file616.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file616.txt --insecure
</command> </command>
<file name="log/file616.txt"> <file name="log/file616.txt">
</file> </file>

View File

@ -23,7 +23,7 @@ scp
SCP retrieval of empty file SCP retrieval of empty file
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/file617.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file617.txt --insecure
</command> </command>
<file name="log/file617.txt"> <file name="log/file617.txt">
</file> </file>

View File

@ -15,7 +15,7 @@ sftp
SFTP retrieval of two files SFTP retrieval of two files
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file618.txt sftp://%HOSTIP:%SSHPORT%PWD/log/file618.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file618.txt sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file618.txt --insecure
</command> </command>
<file name="log/file618.txt"> <file name="log/file618.txt">
Test data Test data

View File

@ -15,7 +15,7 @@ scp
SCP retrieval of two files SCP retrieval of two files
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/file619.txt scp://%HOSTIP:%SSHPORT%PWD/log/file619.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file619.txt scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file619.txt --insecure
</command> </command>
<file name="log/file619.txt"> <file name="log/file619.txt">
Test data Test data

View File

@ -16,7 +16,7 @@ sftp
SFTP retrieval of missing file followed by good file SFTP retrieval of missing file followed by good file
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/not-a-valid-file-moooo sftp://%HOSTIP:%SSHPORT%PWD/log/file620.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/not-a-valid-file-moooo sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file620.txt --insecure
</command> </command>
<file name="log/file620.txt"> <file name="log/file620.txt">
Test data Test data

View File

@ -16,7 +16,7 @@ scp
SCP retrieval of missing file followed by good file SCP retrieval of missing file followed by good file
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/not-a-valid-file-moooo scp://%HOSTIP:%SSHPORT%PWD/log/file621.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/not-a-valid-file-moooo scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file621.txt --insecure
</command> </command>
<file name="log/file621.txt"> <file name="log/file621.txt">
Test data Test data

View File

@ -22,7 +22,7 @@ sftp
SFTP put failure SFTP put failure
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file622.txt sftp://%HOSTIP:%SSHPORT%PWD/log/nonexistent-directory/nonexistent-file --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file622.txt sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/nonexistent-directory/nonexistent-file --insecure
</command> </command>
<file name="log/file622.txt"> <file name="log/file622.txt">
Test data Test data

View File

@ -22,7 +22,7 @@ scp
SCP upload failure SCP upload failure
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file623.txt scp://%HOSTIP:%SSHPORT%PWD/log/nonexistent-directory/nonexistent-file --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file623.txt scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/nonexistent-directory/nonexistent-file --insecure
</command> </command>
<file name="log/file623.txt"> <file name="log/file623.txt">
Test data Test data

View File

@ -22,7 +22,7 @@ sftp
SFTP put with --ftp-create-dirs SFTP put with --ftp-create-dirs
</name> </name>
<command> <command>
--ftp-create-dirs --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file624.txt sftp://%HOSTIP:%SSHPORT%PWD/log/test624.dir/upload.624 --insecure --ftp-create-dirs --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file624.txt sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test624.dir/upload.624 --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test610.pl move %PWD/log/test624.dir/upload.624 %PWD/log/upload.624 rmdir %PWD/log/test624.dir perl %SRCDIR/libtest/test610.pl move %PWD/log/test624.dir/upload.624 %PWD/log/upload.624 rmdir %PWD/log/test624.dir

View File

@ -22,7 +22,7 @@ sftp
SFTP put with --ftp-create-dirs twice SFTP put with --ftp-create-dirs twice
</name> </name>
<command> <command>
--ftp-create-dirs --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file625.txt sftp://%HOSTIP:%SSHPORT%PWD/log/test625.a/upload.625 -T log/file625.txt sftp://%HOSTIP:%SSHPORT%PWD/log/test625.b/upload.625 --insecure --ftp-create-dirs --key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file625.txt sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test625.a/upload.625 -T log/file625.txt sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/test625.b/upload.625 --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test610.pl move %PWD/log/test625.a/upload.625 %PWD/log/upload.625 rmdir %PWD/log/test625.a rm %PWD/log/test625.b/upload.625 rmdir %PWD/log/test625.b perl %SRCDIR/libtest/test610.pl move %PWD/log/test625.a/upload.625 %PWD/log/upload.625 rmdir %PWD/log/test625.a rm %PWD/log/test625.b/upload.625 rmdir %PWD/log/test625.b

View File

@ -22,7 +22,7 @@ sftp
SFTP invalid quote command SFTP invalid quote command
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "invalid-command foo bar" sftp://%HOSTIP:%SSHPORT%PWD/log/file626.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "invalid-command foo bar" sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file626.txt --insecure
</command> </command>
<file name="log/file626.txt"> <file name="log/file626.txt">
Test file for rename test Test file for rename test

View File

@ -16,7 +16,7 @@ sftp
SFTP invalid user login (password authentication) SFTP invalid user login (password authentication)
</name> </name>
<command> <command>
-u not-a-valid-user: sftp://%HOSTIP:%SSHPORT%PWD/irrelevant-file --insecure -u not-a-valid-user: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/irrelevant-file --insecure
</command> </command>
</client> </client>

View File

@ -16,7 +16,7 @@ scp
SCP invalid user login (password authentication) SCP invalid user login (password authentication)
</name> </name>
<command> <command>
-u not-a-valid-user: scp://%HOSTIP:%SSHPORT%PWD/irrelevant-file --insecure -u not-a-valid-user: scp://%HOSTIP:%SSHPORT%POSIX_PWD/irrelevant-file --insecure
</command> </command>
</client> </client>

View File

@ -17,7 +17,7 @@ sftp
SFTP incorrect host key SFTP incorrect host key
</name> </name>
<command> <command>
--hostpubmd5 00000000000000000000000000000000 --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/irrelevant-file --insecure --hostpubmd5 00000000000000000000000000000000 --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/irrelevant-file --insecure
</command> </command>
</client> </client>

View File

@ -17,7 +17,7 @@ scp
SCP incorrect host key SCP incorrect host key
</name> </name>
<command> <command>
--hostpubmd5 00000000000000000000000000000000 --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/irrelevant-file --insecure --hostpubmd5 00000000000000000000000000000000 --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/irrelevant-file --insecure
</command> </command>
</client> </client>

View File

@ -20,7 +20,7 @@ sftp
SFTP syntactically invalid host key SFTP syntactically invalid host key
</name> </name>
<command> <command>
--hostpubmd5 00 --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/irrelevant-file --insecure --hostpubmd5 00 --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/irrelevant-file --insecure
</command> </command>
</client> </client>

View File

@ -24,7 +24,7 @@ sftp
SFTP retrieval with byte range SFTP retrieval with byte range
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file633.txt -r 5-9 --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file633.txt -r 5-9 --insecure
</command> </command>
<file name="log/file633.txt"> <file name="log/file633.txt">
Test data Test data

View File

@ -25,7 +25,7 @@ sftp
SFTP retrieval with byte range past end of file SFTP retrieval with byte range past end of file
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file634.txt -r 5-99 --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file634.txt -r 5-99 --insecure
</command> </command>
<file name="log/file634.txt"> <file name="log/file634.txt">
Test data Test data

View File

@ -24,7 +24,7 @@ sftp
SFTP retrieval with byte range relative to end of file SFTP retrieval with byte range relative to end of file
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file635.txt -r -9 --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file635.txt -r -9 --insecure
</command> </command>
<file name="log/file635.txt"> <file name="log/file635.txt">
Test data Test data

View File

@ -25,7 +25,7 @@ sftp
SFTP retrieval with X- byte range SFTP retrieval with X- byte range
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file636.txt -r 5- --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file636.txt -r 5- --insecure
</command> </command>
<file name="log/file636.txt"> <file name="log/file636.txt">
Test data Test data

View File

@ -23,7 +23,7 @@ sftp
SFTP retrieval with invalid X- range SFTP retrieval with invalid X- range
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file637.txt -r 99- --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file637.txt -r 99- --insecure
</command> </command>
<file name="log/file637.txt"> <file name="log/file637.txt">
Test data Test data

View File

@ -29,7 +29,7 @@ perl %SRCDIR/libtest/test610.pl mkdir %PWD/log/test638.dir
SFTP post-quote rename * asterisk accept-fail SFTP post-quote rename * asterisk accept-fail
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-*rename %PWD/log/test638.dir %PWD/log/test638.new" sftp://%HOSTIP:%SSHPORT%PWD/log/file638.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-*rename %PWD/log/test638.dir %PWD/log/test638.new" sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file638.txt --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test638.new perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test638.new

View File

@ -29,7 +29,7 @@ perl %SRCDIR/libtest/test610.pl mkdir %PWD/log/test639.dir
SFTP post-quote rename * asterisk accept-fail SFTP post-quote rename * asterisk accept-fail
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-*rename %PWD/log/test639-not-exists-dir %PWD/log/test639.new" sftp://%HOSTIP:%SSHPORT%PWD/log/file639.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-*rename %PWD/log/test639-not-exists-dir %PWD/log/test639.new" sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file639.txt --insecure
</command> </command>
<postcheck> <postcheck>
perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test639.dir perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test639.dir

View File

@ -23,7 +23,7 @@ sftp
SFTP --head retrieval SFTP --head retrieval
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file640.txt --insecure --head --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file640.txt --insecure --head
</command> </command>
<file name="log/file640.txt"> <file name="log/file640.txt">
Test data Test data

View File

@ -23,7 +23,7 @@ scp
SCP --head retrieval SCP --head retrieval
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/file641.txt --insecure --head --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file641.txt --insecure --head
</command> </command>
<file name="log/file641.txt"> <file name="log/file641.txt">
Test data Test data

View File

@ -24,7 +24,7 @@ sftp
SFTP retrieval SFTP retrieval
</name> </name>
<command> <command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: --compressed-ssh sftp://%HOSTIP:%SSHPORT%PWD/log/file642.txt --insecure --key curl_client_key --pubkey curl_client_key.pub -u %USER: --compressed-ssh sftp://%HOSTIP:%SSHPORT%POSIX_PWD/log/file642.txt --insecure
</command> </command>
<file name="log/file642.txt"> <file name="log/file642.txt">
Test data Test data

View File

@ -16,7 +16,7 @@ sftp
SFTP retrieval with nonexistent private key file SFTP retrieval with nonexistent private key file
</name> </name>
<command> <command>
--key DOES_NOT_EXIST --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo --insecure --connect-timeout 8 --key DOES_NOT_EXIST --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%POSIX_PWD/not-a-valid-file-moooo --insecure --connect-timeout 8
</command> </command>
</client> </client>

View File

@ -195,6 +195,7 @@ my $memdump="$LOGDIR/memdump";
my $memanalyze="$perl $srcdir/memanalyze.pl"; my $memanalyze="$perl $srcdir/memanalyze.pl";
my $pwd = getcwd(); # current working directory my $pwd = getcwd(); # current working directory
my $posix_pwd = $pwd;
my $start; my $start;
my $ftpchecktime=1; # time it took to verify our test FTP server my $ftpchecktime=1; # time it took to verify our test FTP server
@ -3200,6 +3201,7 @@ sub subVariables {
$$thing =~ s/%CURL/$CURL/g; $$thing =~ s/%CURL/$CURL/g;
$$thing =~ s/%PWD/$pwd/g; $$thing =~ s/%PWD/$pwd/g;
$$thing =~ s/%POSIX_PWD/$posix_pwd/g;
$$thing =~ s/%SRCDIR/$srcdir/g; $$thing =~ s/%SRCDIR/$srcdir/g;
$$thing =~ s/%USER/$USER/g; $$thing =~ s/%USER/$USER/g;