summaryrefslogtreecommitdiff
path: root/tests/data/test494
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-06-11 16:19:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-13 23:44:41 +0200
commitbbbc5de93f18d9a00143288e6189a437f23411d5 (patch)
tree1e6087b3efa31ad417b9599f6ff4fbcfb4601269 /tests/data/test494
parent77bc35901f558c5198672099671b2d0eb3787566 (diff)
downloadcurl-bbbc5de93f18d9a00143288e6189a437f23411d5.tar.gz
netrc: skip 'macdef' definitions
Add test 494 to verify Reported-by: Harry Sintonen Fixes #7238 Closes #7244
Diffstat (limited to 'tests/data/test494')
-rw-r--r--tests/data/test49460
1 files changed, 60 insertions, 0 deletions
diff --git a/tests/data/test494 b/tests/data/test494
new file mode 100644
index 000000000..441744619
--- /dev/null
+++ b/tests/data/test494
@@ -0,0 +1,60 @@
+<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>