1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-16 06:25:03 -05:00
curl/tests/data/test494
Daniel Stenberg bbbc5de93f
netrc: skip 'macdef' definitions
Add test 494 to verify

Reported-by: Harry Sintonen
Fixes #7238
Closes #7244
2021-06-13 23:44:41 +02:00

61 lines
716 B
Plaintext

<testcase>
<info>
<keywords>
FTP
EPSV
netrc
macdef
</keywords>
</info>
#
# Server-side
<reply>
<data>
blipp
</data>
</reply>
#
# Client-side
<client>
<server>
ftp
</server>
<name>
skip 'macdef' when parsing netrc
</name>
<command>
--netrc --netrc-file log/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
</command>
<file name="log/netrc%TESTNUMBER" >
macdef testmacro
bin
cd default
cd login
put login.bin
cd ..
cd password
put password.bin
quit
machine %HOSTIP login user1 password passwd1
</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
USER user1
PASS passwd1
PWD
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>