aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-04-11 16:41:56 +0300
committerGitHub <noreply@github.com>2017-04-11 16:41:56 +0300
commit42d1661bd9d4a29d8780e77127542120624d3729 (patch)
treef40d39bf9418499d2296e8c227c00f015bc9bf2b /run_unittests.py
parent371e3d3e87bff5413554bbfc01250a899288400c (diff)
parent1fbf6300c5d38b12a4347a9327e54a9a315ef8de (diff)
downloadmeson-42d1661bd9d4a29d8780e77127542120624d3729.zip
meson-42d1661bd9d4a29d8780e77127542120624d3729.tar.gz
meson-42d1661bd9d4a29d8780e77127542120624d3729.tar.bz2
Merge pull request #1588 from absmall/method
Add an option to dependencies called 'method'.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 4599b2b..6ea1d41 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1134,7 +1134,7 @@ class LinuxlikeTests(BasePlatformTests):
if qt4 != 0 or qt5 != 0:
raise unittest.SkipTest('Qt not found with pkg-config')
testdir = os.path.join(self.framework_test_dir, '4 qt')
- self.init(testdir)
+ self.init(testdir, ['-Dmethod=pkg-config'])
# Confirm that the dependency was found with qmake
msg = 'Qt4 native `pkg-config` dependency (modules: Core, Gui) found: YES\n'
msg2 = 'Qt5 native `pkg-config` dependency (modules: Core, Gui) found: YES\n'
@@ -1157,10 +1157,8 @@ class LinuxlikeTests(BasePlatformTests):
if 'Qt version 5' not in output and 'qt5' not in output:
raise unittest.SkipTest('Qmake found, but it is not for Qt 5.')
# Disable pkg-config codepath and force searching with qmake/qmake-qt5
- os.environ['PKG_CONFIG_LIBDIR'] = self.builddir
- os.environ['PKG_CONFIG_PATH'] = self.builddir
testdir = os.path.join(self.framework_test_dir, '4 qt')
- self.init(testdir)
+ self.init(testdir, ['-Dmethod=qmake'])
# Confirm that the dependency was found with qmake
msg = 'Qt5 native `qmake-qt5` dependency (modules: Core) found: YES\n'
msg2 = 'Qt5 native `qmake` dependency (modules: Core) found: YES\n'