AgeCommit message (Collapse)AuthorLines
Check the feed's elements, limits and pathBryce Kwon-32/+102
No entry content was checked, so a wrong link, id or date passed, and the path control looked at the status alone. A max-atom-items of 0 or below, all=1 and the epoch an empty feed takes had no test. The xmllint checks read a feed an earlier test left behind, which was another feed whenever that test failed early.
Test enable-plain-email=0 where it changes outputBryce Kwon-0/+8
No test set it, though it switches the patch to a format of cgit's own and drops the address from the feed and the trailer idents.
Check the feed escapes what XML cannot carryBryce Kwon-0/+45
Every fixture subject was plain ASCII, so xmllint never met a byte the escaping exists for. git commit rewrites stray bytes as Latin-1 and the commit parser replaces any that are left, so the commit is written by hand and the description carries a stray byte to the feed's own check.
Answer an empty repository's feed with a feedBryce Kwon-0/+19
Move the feed link check in with the feed testsBryce Kwon-0/+6
It asks for a log page, and the index never carries a feed link.
Add the shared config writers and cgit_rcBryce Kwon-8/+2
The helpers are named by kind. cgitrc_repo and cgitrc_copy write the config file named first, and cgit_url, cgit_query and cgit_rc run cgit, each named after what it is handed first. A repository copies its defaults from the globals read before its repo.url, so cgitrc_repo places every setting itself, and a global can no longer land where it silently stops applying. The t00xx and t01xx files move to them here.
Leave snapshot and feed tool checks to test-libBryce Kwon-6/+1
A lazy prerequisite is checked only when a test asks for it, and test-lib names the missing one on every skipped test, so the skip notes go too. test-lib already defines UNZIP and the unzip it checks. The test that unpacks a tag's tar.gz with gzip now asks for GZIP like every other one that does.
Refuse pathspec magic in the feed as in the logBryce Kwon-0/+9
A feed path starting with a colon reached git as pathspec magic, so an unknown magic word ended the request in a 500 and a known one changed what the path matched, while the log answers both with a 400.
Trim the comments and dead code across the treeBryce Kwon-6/+3
Add tests for the plain page and the atom feedBryce Kwon-0/+65