AgeCommit message (Collapse)AuthorLines
Check the Lua-less build through the helpersBryce Kwon-1/+2
t0006 ran build/nolua/cgit by its path, so Valgrind never saw it, and its page checks passed a page that logged an error. The Makefile and README said the suite runs both binaries the same way, though only these four tests run the one without Lua.
Keep cgit under Valgrind whichever way it is askedBryce Kwon-4/+17
The library runs a script again for --tee, --verbose-log and --stress with the arguments setup.sh left it, and --valgrind was no longer among them, so -V --valgrind ran cgit bare. --valgrind=<tool> reached the library instead, which then wrapped every Git command and left cgit alone. --valgrind-only is refused, as it would need the library's own per-test switching.
Prefer POSIX forms throughout the test scriptsBryce Kwon-2/+5
Reorganise into source, assets and librariesBryce Kwon-1/+1
Everything the build generates now lands in build/, so a clean is a single remove and the source tree stays free of build output.
tests: add Valgrind supportJohn Keeping-0/+12
Now running tests with the "--valgrind" option will run cgit under Valgrind instead of all Git commands. Signed-off-by: John Keeping <john@keeping.me.uk>