46 Commits

Author SHA1 Message Date
Andrew Ruthven
d686ea4c3f Allow tests to dynamically set the DAViCal configuration 2024-05-27 09:46:12 +12:00
Andrew Ruthven
341707b045 Allow multiple curl requests per test file
This could still do with some more work to allow clearing previous settings,
it does now allow repeated URL lines per test file.
2024-05-03 23:35:26 +12:00
Andrew Ruthven
a02fffa4ca Ensure that request_id has no \r or \n characters. 2024-05-03 23:33:25 +12:00
Andrew Ruthven
569b20d92f Allow tests to provide configuration over rides
Written to provide scope for Apache2 config overrides as well (I
think I'll need these to add Kerberos testing...)
2024-05-01 22:32:33 +12:00
Andrew Ruthven
e900dff28e If a URL test fails, display the Apache Request ID to aid debugging
This helps with #311.
2024-04-02 00:11:30 +13:00
Andrew Ruthven
7c47658bee Make the curl and SQL requests when we see them
This allows us to have more complex test files where an action is taken, then
we test something, then another action is taken, etc.

Changes to test files are required so that URL is defined after all the
required settings are set.

Changes to the result files are either whitespace changes due to above logic
changes, or printing out a SQL Result header before each result. I figured it
was useful.
2024-04-01 22:57:10 +13:00
Andrew Ruthven
c5b3e385b3 Allow changing directory when running a script
This also involves changing scripts to be run at the time they're mentioned,
not accruing them to run at the end.
2024-03-03 21:30:22 +13:00
Andrew Ruthven
0c28a4ffe6 Make CLI usage easier 2024-02-29 00:43:49 +13:00
Andrew Ruthven
974d7d3924 Check that all UI pages load without PHP warnings or deprecation messages 2024-02-29 00:43:49 +13:00
Andrew Ruthven
8c378387c8 For consistency allow BEGIN for the SQL commands 2024-02-29 00:43:49 +13:00
Andrew Ruthven
c2a054d28e Add initial tests for the web UI
Use Test::WWW::Mechanize to test the UI.

Closes #310
2024-02-29 00:43:47 +13:00
Andrew Ruthven
a065435a99 Create tests for 'external' calendars 2024-02-18 00:04:29 +13:00
Andrew Ruthven
995fe296c4 All debug output goes to STDERR so not combined with test results 2024-02-17 02:25:25 +00:00
Andrew Ruthven
86cb62f404 is_head_request is only used once, simplify 2024-02-17 02:25:25 +00:00
Andrew Ruthven
7898efdfda Add the ability to run Perl snippets
This allows for more complicated test suites, which I'll use in the next commit...
2024-02-17 02:25:25 +00:00
Andrew Ruthven
fdf58827e3 Allow enabling debugging via environment variable 2023-05-02 00:12:48 +12:00
Andrew Ruthven
778f51ca28 Disabling raw gets rid of some of the garbage 2021-09-19 00:30:42 +12:00
Andrew Ruthven
46c76c645f Atually, options aren't supported on the end of REPLACE 2018-11-29 13:20:44 +13:00
Florian Schlichting
0cab01f390 dav_test: all files and I/O are UTF-8 2017-09-21 00:39:24 +02:00
Andrew McMillan
413c26dd71 More aggressively set timezone for regression testing. 2013-09-26 16:25:01 +02:00
Andrew McMillan
2589a886f8 Fix deprecated warning. 2013-09-24 11:45:47 +02:00
Andrew McMillan
a3b197a209 Ensure test responses are displayed in their unprocessed form. 2012-08-09 14:10:41 +12:00
Andrew McMillan
f47ad7b669 Allow dav_test to be used against random SSL certs. 2012-03-12 13:20:33 +13:00
Andrew McMillan
e8a7a7b79a Allow specifying that this test will use Digest authentication. 2012-01-30 22:25:03 -08:00
Andrew McMillan
7f26b16da8 Support DOSQL to to arbitrary SQL before actual regression test. 2011-10-20 12:19:43 +13:00
Andrew McMillan
5d3b265ba5 Support multiple SCRIPT= lines in a regression test. 2011-09-23 13:02:28 +12:00
Andrew McMillan
1e4c7e7a26 Output the database error when a query fails.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:23:53 +13:00
Andrew McMillan
d57c2f3f96 Updated dav_test now looks for DATA= as simple filename. 2010-03-22 17:32:16 -07:00
Andrew McMillan
c68c8f1047 Don't moan if we use DATA= without having suite set. 2010-03-22 17:01:19 -07:00
Andrew McMillan
1296bded43 Add a test header and log it to help find which tests cause problems. 2010-03-18 19:59:19 +13:00
Andrew McMillan
6e16011d00 Allow for replacing the regression.host in headers as well. 2009-11-04 00:19:24 +13:00
Andrew McMillan
c1267717d0 Allow test case to be fully specified on the command line by filename. 2009-10-30 19:06:57 +13:00
Andrew McMillan
7c07663762 Add the possibility of setting primary/alternate hostnames. 2008-11-18 18:14:37 +13:00
Andrew McMillan
7994e8e011 Present SQL results in a more readable manner. 2008-11-10 11:48:24 +13:00
Andrew McMillan
a11f29ba11 Add help note about the REPLACE= option. 2008-10-25 13:13:51 +13:00
Andrew McMillan
b66460a34d Display NULL for null fields. 2007-11-24 23:07:54 +13:00
Andrew McMillan
ec7dcef813 If running in debug then don't call curl with --silent 2007-11-03 20:44:22 +13:00
Andrew McMillan
c370e3dc5f Change the dbname/dbport/dbhost parameters into one dsn parameter. 2007-11-02 22:12:45 +13:00
Andrew McMillan
23965cdc0d Allow pattern replacement of output fields to be specified. 2006-12-17 22:00:40 +13:00
Andrew McMillan
a722e11b56 Quiet a warning when our test doesn't have an associated query. 2006-12-06 19:34:45 +13:00
Andrew McMillan
df692d2535 Regression testing framework now with SQL query support. 2006-12-06 14:01:03 +13:00
Andrew McMillan
b33e639f8c Allow BEGINDATA and ENDDATA to wrap data inside the test file. 2006-12-04 10:13:33 +13:00
Andrew McMillan
a73c430280 Use the right options when we are making a "HEAD" request. Much faster. 2006-11-20 22:38:27 +13:00
Andrew McMillan
bc1065c637 Allow NOAUTH to test that people really do need to log in. A regression
test identifying that.
2006-11-01 10:13:13 +13:00
Andrew McMillan
99719ddbfc Real regression testing, using parts of the framework developed earlier. 2006-10-26 00:29:47 +13:00
Andrew McMillan
046e390380 The beginnings of a testing framework. 2006-10-05 00:38:23 +13:00