1# Setup hook for checking whether Python imports succeed
2echo "Sourcing luarocks-check-hook.sh"
3
4luarocksCheckPhase () {
5 echo "Executing luarocksCheckPhase"
6 runHook preCheck
7
8 luarocks test
9
10 runHook postCheck
11 echo "Finished executing luarocksCheckPhase"
12}
13
14if [ -z "${dontLuarocksCheck-}" ] && [ -z "${checkPhase-}" ]; then
15 echo "Using luarocksCheckPhase"
16 checkPhase+=" luarocksCheckPhase"
17fi
18