aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-08-11 06:30:06 -0700
committerGitHub <noreply@github.com>2018-08-11 06:30:06 -0700
commit41bb5941e15e81891a4e3e9d4faf19ed2743c2c1 (patch)
tree8ce54f696bddb59aa2a8c60f8bd4b7a4c8843f73 /run_unittests.py
parent1b2f8acbeba554f3a459bb32f8c6665c4f39376b (diff)
parentc3335615e242fdb2a7bdf814d6e6ee0d564f5423 (diff)
downloadmeson-41bb5941e15e81891a4e3e9d4faf19ed2743c2c1.zip
meson-41bb5941e15e81891a4e3e9d4faf19ed2743c2c1.tar.gz
meson-41bb5941e15e81891a4e3e9d4faf19ed2743c2c1.tar.bz2
Merge pull request #3657 from jon-turney/consolidate-dependency-check-report
Consolidate reporting the result of a dependency check
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/run_unittests.py b/run_unittests.py
index efb69ad..6e50172 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3025,11 +3025,12 @@ class LinuxlikeTests(BasePlatformTests):
raise unittest.SkipTest('Qt not found with pkg-config')
testdir = os.path.join(self.framework_test_dir, '4 qt')
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'
+ # Confirm that the dependency was found with pkg-config
mesonlog = self.get_meson_log()
- self.assertTrue(msg in mesonlog or msg2 in mesonlog)
+ self.assertRegex('\n'.join(mesonlog),
+ r'Dependency qt4 \(modules: Core\) found: YES .*, `pkg-config`\n')
+ self.assertRegex('\n'.join(mesonlog),
+ r'Dependency qt5 \(modules: Core\) found: YES .*, `pkg-config`\n')
def test_qt5dependency_qmake_detection(self):
'''
@@ -3047,10 +3048,9 @@ class LinuxlikeTests(BasePlatformTests):
testdir = os.path.join(self.framework_test_dir, '4 qt')
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'
mesonlog = self.get_meson_log()
- self.assertTrue(msg in mesonlog or msg2 in mesonlog)
+ self.assertRegex('\n'.join(mesonlog),
+ r'Dependency qt5 \(modules: Core\) found: YES .*, `(qmake|qmake-qt5)`\n')
def _test_soname_impl(self, libpath, install):
if is_cygwin() or is_osx():