test1304: Added some unit tests for Curl_parsenetrc.

Moved some definitons into the header file so that we can reuse them.
This commit is contained in:
Julien Chaffraix 2011-02-07 22:12:37 -08:00
parent 3cffcba3d0
commit 39d0d787d2
6 changed files with 167 additions and 8 deletions

View file

@ -69,7 +69,8 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test569 test570 test571 test572 test804 test805 test806 test807 test573 \
test313 test1115 test578 test579 test1116 test1200 test1201 test1202 \
test1203 test1117 test1118 test1119 test1120 test1300 test1301 test1302 \
test1303 test320 test321 test322 test323 test324 test1121 test581 test580
test1303 test320 test321 test322 test323 test324 test1121 test581 test580 \
test1304
filecheck:
@mkdir test-place; \

31
tests/data/test1304 Normal file
View file

@ -0,0 +1,31 @@
<testcase>
<info>
<keywords>
unittest
netrc
</keywords>
</info>
#
# Client-side
<client>
<server>
none
</server>
<features>
unittest
netrc_debug
</features>
<name>
netrc parsing unit tests
</name>
<tool>
unit1304
</tool>
<file name="log/netrc">
machine example.com login admin password passwd
machine curl.example.com login none password none
</file>
</client>
</testcase>