Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Say why the Lua search paths reach the tests
Diffstat (limited to 'tests/extensions/lib.sh')
| -rw-r--r-- | tests/extensions/lib.sh | 5 |
1 file changed, 4 insertions, 1 deletion
diff --git a/tests/extensions/lib.sh b/tests/extensions/lib.sh index 041a042..addc10e 100644 --- a/tests/extensions/lib.sh +++ b/tests/extensions/lib.sh @@ -3,7 +3,10 @@ # beside this file, lists the standalone Lua interpreters the checks can run # under, and offers a probe that asks the Lua inside the cgit binary itself # whether a module is available to it, since that interpreter can differ from -# every standalone one on the path. +# every standalone one on the path. LUA_PATH, LUA_CPATH and their versioned +# forms come through from the environment on purpose, as they are how a +# system points Lua at its modules, so the probes find what the system has. +# A fallback that needs a module gone runs through without_lua_modules. EXTENSIONS_DIRECTORY=$(cd "$TEST_OUTPUT_DIRECTORY/../custom/extensions" && pwd) EXT_TEST_DIRECTORY=$(cd "$TEST_OUTPUT_DIRECTORY/extensions" && pwd) |
