AgeCommit message (Collapse)AuthorLines
Check both avatar filters through cgitBryce Kwon-1/+11
Only email-gravatar ever ran inside cgit, and nothing there checked that the icon is fetched without a Referer.
Prove the avatar fallback on any machineBryce Kwon-13/+12
The page without icons was checked only where cgit's Lua lacked luaossl, so a machine that has it never ran the fallback. It now runs with every Lua search path pointed at an empty directory, and the log line is compared whole. Writing the config needs no Lua, so that step runs everywhere too.
Decide every unit check skip in the shellBryce Kwon-6/+4
Where a standalone Lua had no lpeg, the harness skipped the markdown and man checks itself, behind a note the test library hides, and the test passed on the six checks left. The real luaossl checks were left out the same way. Each now shows as a skip under a prerequisite named for the interpreter, and a misspelt mode fails rather than running the default.
Show unit checks as skipped when no Lua is foundBryce Kwon-10/+10
With no standalone interpreter on the path the unit checks were never registered, so they counted as neither run nor skipped, and a fault in the version probe dropped them all behind one line of output. The test bodies now expand their paths as they run, so a quote in a path no longer breaks them.
Run each standalone Lua version onceBryce Kwon-3/+3
A plain lua is usually one of the versioned names again, as lua and lua5.5 are here, so every 5.5 check ran twice, while names such as lua54 and lua-5.4 were never looked for. A test now names the version that ran, since "under lua" did not say which one it was.
Check the whole page in the extension testsBryce Kwon-3/+3
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-9/+1
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.
Claim and test Lua 5.5 for every extensionBryce Kwon-1/+1
luaossl from release 20260910 and luaposix load under Lua 5.5, and cgit renders the same pages under it as under LuaJIT. Running the suites there already caught a write to a for loop's control variable, which 5.5 makes read-only.
Hash avatar addresses with SHA-256Bryce Kwon-4/+4
Gravatar's documentation now describes SHA-256 hashes on gravatar.com alone, and Libravatar has long accepted them beside MD5.
Draw no avatar when luaossl is missingBryce Kwon-7/+22
The require at the top raised as cgit loaded the filter, so every page that lists an author stopped at its first author cell with an error.
Gate scanned filters with trust-scan-filtersBryce Kwon-1/+0
Clean up the whole treeBryce Kwon-4/+2
Add a test suite for the shipped extensionsBryce Kwon-0/+77