From 7d974cd9629db088cffce1ecb095ace4f1d68846 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Mon, 12 Feb 2018 16:51:21 +0000 Subject: Skip test cases/frameworks/4 qt if Qt5 not found --- test cases/frameworks/4 qt/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test cases/frameworks/4 qt/meson.build b/test cases/frameworks/4 qt/meson.build index b0e848d26..b508df303 100644 --- a/test cases/frameworks/4 qt/meson.build +++ b/test cases/frameworks/4 qt/meson.build @@ -21,6 +21,14 @@ foreach qt : ['qt4', 'qt5'] error('Invalid qt dep incorrectly found!') endif + # This test should be skipped if qt5 isn't found + if qt == 'qt5' + dep = dependency(qt, modules : ['Core'], required : false, method : get_option('method')) + if not dep.found() + error('MESON_SKIP_TEST qt5 not found.') + endif + endif + # Ensure that the "no-Core-module-specified" code branch is hit nocoredep = dependency(qt, modules : ['Gui'], required : qt == 'qt5', method : get_option('method')) -- cgit v1.2.3