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-12 19:53:29 +0200
commitb04272f1216d129d4e4ebe2c6cb07f98d86a962e (patch)
tree57defbe4583ec310dfed3108972839c7d7cffcd9 /run_unittests.py
parent88013815633759fd499bde9e0173aaf9024604b1 (diff)
downloadmeson-runsubdir.zip
meson-runsubdir.tar.gz
meson-runsubdir.tar.bz2
Fix run_targets running scripts from different subdirs.runsubdir
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