From edd5be9effd3e444bc21d1a79de3e29bd19a4448 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 2 Jan 2018 05:50:50 +0100 Subject: [PATCH] meson: set checkPhase in setup hook --- .../tools/build-managers/meson/setup-hook.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/tools/build-managers/meson/setup-hook.sh b/pkgs/development/tools/build-managers/meson/setup-hook.sh index 25e2e69ef31..8f96e6146be 100644 --- a/pkgs/development/tools/build-managers/meson/setup-hook.sh +++ b/pkgs/development/tools/build-managers/meson/setup-hook.sh @@ -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