test: Add URL parser test infrastructure
authorJeremy Kerr <jk@ozlabs.org>
Wed, 6 Mar 2013 05:42:15 +0000 (13:42 +0800)
committerGeoff Levand <geoff@infradead.org>
Wed, 6 Mar 2013 14:06:36 +0000 (06:06 -0800)
commitbf40f5fbd759241d1505c985fa02441cd6febd64
tree30971d65cdbd70c9df43fbec6eb80464b1d17737
parent56c142e5406160a58ee345e3e0433eb998ee046e
test: Add URL parser test infrastructure

This change adds some simple testing infrastrcture to the URL parser.
We use a small C binary (parse-url) to run the url parser on its
argument, and compare the output with an expected datafile.

An initial test is included, to check the behaviour of URLs with
multiple slashes between host and pathname. This test currently fails.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
configure.ac.in
test/Makefile.am
test/urls/Makefile.am [new file with mode: 0644]
test/urls/data/double-slash.test [new file with mode: 0644]
test/urls/parse-url.c [new file with mode: 0644]
test/urls/run-url-test.in [new file with mode: 0755]