Commit Graph

63 Commits

Author SHA1 Message Date
Emil Mikulic
ae676feaeb Add Makefile for tests and cleaning up. 2016-01-23 20:11:30 +11:00
Emil Mikulic
3478d24419 Make the output more obvious. 2016-01-23 20:10:10 +11:00
Emil Mikulic
112f1ccb92 Test builds with different defines. 2016-01-23 20:08:02 +11:00
Emil Mikulic
f913e17125 Rename "cover" to "run-tests" 2016-01-23 20:05:02 +11:00
Emil Mikulic
0ee2971740 Catch up to clang changes. 2016-01-14 00:57:42 +11:00
Emil Mikulic
853a6af62d Indent, add dir, allow inconclusive. 2016-01-11 00:32:15 +11:00
Emil Mikulic
1c5fdb5607 Escape URLs according to RFC3986.
Previously, we weren't escaping parentheses when generating directory listings.

Pointed out by: Wijatmoko U. Prayitno
2015-05-19 22:04:39 +10:00
Emil Mikulic
c4c0034242 Add --default-mimetype flag. 2015-05-19 21:40:26 +10:00
Emil Mikulic
e9aeaba7fe Add test for --no-listing. 2015-05-19 21:30:59 +10:00
Emil Mikulic
03a22661a0 Test keepalive. 2015-01-01 22:18:10 +11:00
Emil Mikulic
de92584da1 Add TestHelper.get() 2015-01-01 21:47:59 +11:00
Emil Mikulic
81b1bcbd74 Test for unreadable directory (can't generate listing). 2015-01-01 21:20:08 +11:00
Emil Mikulic
6e1f045393 Test resize in appendl(). 2015-01-01 20:35:37 +11:00
Emil Mikulic
946a910935 Test 404 and 403. 2015-01-01 20:32:52 +11:00
Emil Mikulic
456bbfcde6 Test CRLF handling in read_line(). 2015-01-01 20:17:03 +11:00
Emil Mikulic
72c5539412 When testing, build with -DDEBUG. 2015-01-01 18:32:01 +11:00
Emil Mikulic
f24c9d0d59 Add a harness for fuzzing make_safe_uri() 2015-01-01 18:15:10 +11:00
Emil Mikulic
e50accedb8 cp test_make_safe_uri.c fuzz_make_safe_uri.c 2015-01-01 17:10:47 +11:00
Emil Mikulic
5058dfeb03 Add test for urldecode() 2014-05-26 22:01:22 +10:00
Emil Mikulic
0001301dae cppcheck: use --force to check all #ifdef configurations. 2014-05-26 21:56:29 +10:00
Emil Mikulic
e8a38f9c6a Remove query params.
Reported by: James Antill
https://bugzilla.redhat.com/show_bug.cgi?id=1099199
2014-05-26 21:36:29 +10:00
Emil Mikulic
5854227fc7 Mark cppcheck executable. 2014-03-14 22:51:43 +11:00
Emil Mikulic
9fe3ed4fc1 Run test_make_safe_uri. Retire broken run-tests.sh 2014-03-14 22:50:44 +11:00
Emil Mikulic
f73bf69a1e Implement --forward-all to forward all requests to a given url.
Suggested and initially implemented by: Christian Hesse <mail@eworm.de>
2014-03-14 22:40:55 +11:00
Emil Mikulic
c97d2c4042 Add script to run cppcheck. 2014-03-14 21:52:59 +11:00
Emil Mikulic
7dc06f3096 Add test for --mimetypes 2013-06-10 20:44:20 +10:00
Emil Mikulic
e6680c4f2f Add test to exercise memove() in make_safe_url() 2013-06-10 19:26:25 +10:00
Emil Mikulic
7551090ac5 Tests: add pointer to cover script which runs them. 2013-06-10 18:52:38 +10:00
Emil Mikulic
5a0291f47e Implement --no-server-id
Suggested by: T.Ramirez
2013-04-29 00:55:08 +10:00
Emil Mikulic
ccf0dbd809 Add test for --forward 2013-04-29 00:32:22 +10:00
Emil Mikulic
1b10a57f39 Make devel/cover clean up after itself. 2013-04-28 21:45:14 +10:00
Emil Mikulic
efe37364eb Fix warnings found by clang r180088. 2013-04-28 21:24:33 +10:00
Emil Mikulic
f29b75fb1d Clean up and improve the devel/ scripts. 2013-04-28 21:16:40 +10:00
Emil Mikulic
bfd58235c5 Test large (>2G, >4G) files. 2013-04-28 20:57:09 +10:00
Emil Mikulic
34ad70cc45 Run usage, not really a test. 2013-04-28 20:57:09 +10:00
Emil Mikulic
c0c9692799 Check dependencies in devel/cover 2013-04-28 20:56:56 +10:00
Emil Mikulic
910298566f Single byte corner cases. 2013-04-28 20:56:46 +10:00
Emil Mikulic
22b4dac09b Test directory redirect. 2013-04-28 20:56:46 +10:00
Emil Mikulic
e8ec37109b Still more range test fiddling. 2013-04-28 20:56:46 +10:00
Emil Mikulic
e4ab741461 Add test for backwards range. 2013-04-28 20:56:46 +10:00
Emil Mikulic
e94a18b4e2 Passing bad-end range test. 2013-04-28 20:56:46 +10:00
Emil Mikulic
62f547da9d Test range requests, including one failing test. 2013-04-28 20:56:46 +10:00
Emil Mikulic
a2eb59e928 Failing test for If-Modified-Since 2013-04-28 20:56:46 +10:00
Emil Mikulic
c7b65d1123 Test for HEAD method. 2013-04-28 20:56:46 +10:00
Emil Mikulic
d916f760b8 Implement straightforward GET test. 2013-04-28 20:56:37 +10:00
Emil Mikulic
449b78efaa Use setUp and tearDown to manage test file. 2013-04-28 20:56:14 +10:00
Emil Mikulic
0b5d1d881c Re-arrange tests, no functional change. 2013-04-28 20:56:14 +10:00
Emil Mikulic
77e050b4f4 Oops, wrong kind of line ending.
Also, enforce Connection:close since the test harness doesn't
handle keep-alive.
2013-04-28 20:56:04 +10:00
Emil Mikulic
897e85a46e Test URL escaping in directory listing. 2013-04-28 20:56:04 +10:00
Emil Mikulic
b7038c8329 Don't log to stdout when testing. 2013-04-28 20:56:04 +10:00