aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-03-12 19:53:29 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-03-14 13:17:19 +0200
commitbe86199221046fa5527b93b8c7231c6c3af344d4 (patch)
tree0b085d78f800b5b70adb9a18e71b043e4129ff03 /run_unittests.py
parent1f3bf0f1357a20d9975a2de54e0fd097fc52424f (diff)
downloadmeson-be86199221046fa5527b93b8c7231c6c3af344d4.zip
meson-be86199221046fa5527b93b8c7231c6c3af344d4.tar.gz
meson-be86199221046fa5527b93b8c7231c6c3af344d4.tar.bz2
Fix run_targets running scripts from different subdirs.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 759aa96..7e7ec93 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -2385,6 +2385,15 @@ class AllPlatformTests(BasePlatformTests):
self.run_target('check-env')
self.run_target('check-env-ct')
+ def test_run_target_subdir(self):
+ '''
+ Test that run_targets are run from the correct directory
+ https://github.com/mesonbuild/meson/issues/957
+ '''
+ testdir = os.path.join(self.common_test_dir, '52 run target')
+ self.init(testdir)
+ self.run_target('textprinter')
+
def test_install_introspection(self):
'''
Tests that the Meson introspection API exposes install filenames correctly