meson: set checkPhase in setup hook

This commit is contained in:
Jan Tojnar
2018-01-02 05:50:50 +01:00
parent 1fcd92ce92
commit edd5be9eff

View File

@@ -25,3 +25,15 @@ if [ -z "$dontUseMesonConfigure" -a -z "$configurePhase" ]; then
setOutputFlags=
configurePhase=mesonConfigurePhase
fi
mesonCheckPhase() {
runHook preCheck
meson test
runHook postCheck
}
if [ -z "$dontUseMesonCheck" -a -z "$checkPhase" ]; then
checkPhase=mesonCheckPhase
fi