3
0
Fork 0
forked from mirrors/nixpkgs

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
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

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