Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Let a test run require the tools it must not skip
Nothing could make a missing prerequisite fail. A host without
pkg-config builds without Lua, and make test then passed with every
Lua test skipped and the lua pass of t0201 never run. The whole-script
skips become named prerequisites so the same list covers them, and the
strace probe now traces the file class of calls the tests use, so an
strace too old for it skips rather than fails.
Diffstat (limited to 'README.txt')
| -rw-r--r-- | README.txt | 10 |
1 file changed, 10 insertions, 0 deletions
@@ -351,6 +351,16 @@ standalone Lua or LuaJIT for the unit checks of the filters, with lpeg, luaossl and luaposix for some of them, and dash, ksh and bash besides sh for the hooks. A few need an account other than root. +A run that has to cover everything, such as one before a release, names the +prerequisites it cannot go without in CGIT_TEST_REQUIRE, separated by spaces, +and a script that finds one missing then stops with an error rather than skip +the tests that need it. The names are CGIT_LUA for a cgit built with Lua, +CGIT_NOLUA for build/nolua, TIDY, STRACE and STRACE_DELAY, PYTHON, XMLLINT, +UNZIP, GZIP, BZIP2, LZIP, XZ, ZSTD, SANITY for an account other than root, and +the others the tests in a script name, such as CGIT_LUA_LPEG. + + $ make test CGIT_TEST_REQUIRE="CGIT_LUA TIDY STRACE SANITY" + Credits ------- |
