AgeCommit message (Collapse)AuthorLines
Check that markup inside a token is escapedBryce Kwon-2/+3
Every escape the checks looked at sat between tokens or in the tail a lexer left untagged, so a filter that escaped only those would have passed with a string literal reaching the page raw.
Check the whole page in the extension testsBryce Kwon-6/+7
A page that died part way through, or logged an error, passed as long as the text grepped for came before the failure. Four tests also read the page an earlier test had fetched, so none of them could run alone.
Name a missing Lua module in the error logBryce Kwon-2/+3
Set the Lua prerequisite once for every testBryce Kwon-8/+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.
Move the highlighter fallback check into t0502Bryce Kwon-1/+12
t0502 owns the shipped highlighter and already writes a cgitrc naming it, so the check needs no config of its own there. t0204's header still called it the last case long after it stopped being one.
Escape the same characters in the highlighterBryce Kwon-0/+11
A lexer may hand back the bytes of one separator, or the CR and LF of a line ending, in different tokens, so line endings become line feeds before lexing and the separators are escaped once the tokens are joined.
Gate scanned filters with trust-scan-filtersBryce Kwon-1/+0
Trim the comments and dead code across the treeBryce Kwon-8/+8
Add a test suite for the shipped extensionsBryce Kwon-0/+74