tests: add urlapi unittest

This adds a new unittest intended to cover the internal functions in
the urlapi code, starting with parse_port(). In order to avoid name
collisions in debug builds, parse_port() is renamed Curl_parse_port()
since it will be exported.

Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Marcel Raad <Marcel.Raad@teamviewer.com>
This commit is contained in:
Daniel Gustafsson 2018-12-11 15:02:24 +01:00
parent 63533cbde2
commit e1be2ecba4
6 changed files with 170 additions and 4 deletions

View file

@ -184,7 +184,7 @@ test1590 \
test1600 test1601 test1602 test1603 test1604 test1605 test1606 test1607 \
test1608 test1609 test1620 \
\
test1650 test1651 test1652 \
test1650 test1651 test1652 test1653 \
\
test1700 test1701 test1702 \
\

23
tests/data/test1653 Normal file
View file

@ -0,0 +1,23 @@
<testcase>
<info>
<keywords>
unittest
urlapi
</keywords>
</info>
<client>
<server>
none
</server>
<features>
unittest
</features>
<name>
urlapi
</name>
<tool>
unit1653
</tool>
</client>
</testcase>