AgeCommit message (Collapse)AuthorLines
Show the lua filter pass as skipped without LuaBryce Kwon-16/+13
A build without Lua left the eight tests of that pass out of the run, where the rest of the script counts its Lua tests as skipped.
Test a content filter that exits non-zeroBryce Kwon-0/+12
cgit takes no notice of how an about, commit, source or email filter exits, and nothing showed that a failing one still leaves the page whole.
Put a Lua filter's print output where it runsBryce Kwon-0/+20
LuaJIT and Lua 5.1 leave print's line in stdio's buffer until cgit exits, after the end of the page.
Move the later tests to the config writersBryce Kwon-20/+11
The one-line request wrappers go with them. Configs with several repositories, a key out of place on purpose, the cache on or no repository of their own stay written out.
Derive the API test's config from the loud oneBryce Kwon-6/+1
Check the filter flush on pages already fetchedBryce Kwon-16/+7
The about check already finds the div right before the filtered text, so its copy went, and the tree page is flattened where it was first read.
Correct two test comments that went staleBryce Kwon-2/+2
Set the Lua prerequisite once for every testBryce Kwon-3/+0
setup.sh already asks the binary, so the seven scripts that each turned the answer into a prerequisite now share one. test-lib names the missing prerequisite beside every test it skips, so the notes that cgit lacks Lua go, while the ones announcing a fallback stay. Every script that listed the standalone interpreters asked for the same ceiling, so lib.sh now builds that list for all of them.
Test the features the suite never reachedBryce Kwon-0/+23
Index sorting, the commit graph, the stats periods past a week, the hex dump of a binary file and a Lua filter's html_url_arg and html_include ran in no test.
Find libc's write when git writes firstBryce Kwon-0/+8
A Lua build replaces write, and git can write before cmd_main reaches cgit_init_filters, as it does when GIT_TRACE2 is set, which called through a null pointer and crashed every request.
Name every Lua filter failure in the logBryce Kwon-0/+13
A script raising anything but a string or a number handed die a null to print, and a Lua state that could not be created was used anyway once the filter closed.
Let a Lua script write while it loadsBryce Kwon-0/+20
A script's top level runs before cgit hooks stdout for it, and the unhook html() began with tripped an assert that aborted cgit.
Say blame gets the source filter and line numbersBryce Kwon-0/+8
Say which filters get the repository variablesBryce Kwon-0/+12
Hand the about filter the tree url its links needBryce Kwon-2/+24
With nothing below the about page, a readme's relative links have to be written against the tree, and only cgit knows how this site spells the url of a tree page and which ref the readme was read from. Both reach the filter already escaped for a url, built by the same writer as cgit's own links.
Add stable markup hooks for site themesBryce Kwon-2/+2
Test the hardening passBryce Kwon-4/+5
Harden the lua filter failure pathsBryce Kwon-0/+22
Trim the comments and dead code across the treeBryce Kwon-7/+4
Prefer POSIX forms throughout the test scriptsBryce Kwon-1/+2
Renumber the test scripts into themed rangesBryce Kwon-0/+0
The numbering walks outward from the ground the suite stands on. - t000x for the git version, html validity and the cache - t01xx for page content, one script per page - t02xx for filters, submodule links, dates and limits, which cut across pages - t03xx for defence, the security regressions and the $HOME promise - t04xx for the helper tools under tools/