aboutsummaryrefslogtreecommitdiff
path: root/test cases
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 /test cases
parent1f3bf0f1357a20d9975a2de54e0fd097fc52424f (diff)
downloadmeson-be86199221046fa5527b93b8c7231c6c3af344d4.zip
meson-be86199221046fa5527b93b8c7231c6c3af344d4.tar.gz
meson-be86199221046fa5527b93b8c7231c6c3af344d4.tar.bz2
Fix run_targets running scripts from different subdirs.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/52 run target/meson.build2
-rw-r--r--test cases/common/52 run target/subdir/textprinter.py3
2 files changed, 5 insertions, 0 deletions
diff --git a/test cases/common/52 run target/meson.build b/test cases/common/52 run target/meson.build
index df0a1a5..85d30f0 100644
--- a/test cases/common/52 run target/meson.build
+++ b/test cases/common/52 run target/meson.build
@@ -103,3 +103,5 @@ custom_target('check-env-ct',
'MY_ENV': '1'},
output: 'check-env-ct',
)
+
+run_target('textprinter', command: ['subdir/textprinter.py'])
diff --git a/test cases/common/52 run target/subdir/textprinter.py b/test cases/common/52 run target/subdir/textprinter.py
new file mode 100644
index 0000000..3159c08
--- /dev/null
+++ b/test cases/common/52 run target/subdir/textprinter.py
@@ -0,0 +1,3 @@
+#!/usr/bin/env python3
+
+print('I am a script. Being run.')