aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test cases/common/151 reserved targets/runtarget/echo.py6
-rw-r--r--test cases/common/151 reserved targets/runtarget/meson.build2
-rw-r--r--test cases/common/84 identical target name in subproject/meson.build6
-rw-r--r--test cases/common/84 identical target name in subproject/subprojects/foo/meson.build6
-rw-r--r--test cases/common/84 identical target name in subproject/subprojects/foo/true.py4
-rw-r--r--test cases/common/84 identical target name in subproject/true.py4
6 files changed, 23 insertions, 5 deletions
diff --git a/test cases/common/151 reserved targets/runtarget/echo.py b/test cases/common/151 reserved targets/runtarget/echo.py
new file mode 100644
index 0000000..7f9f179
--- /dev/null
+++ b/test cases/common/151 reserved targets/runtarget/echo.py
@@ -0,0 +1,6 @@
+#!/usr/bin/env python3
+
+import sys
+
+if len(sys.argv) > 1:
+ print(sys.argv[1])
diff --git a/test cases/common/151 reserved targets/runtarget/meson.build b/test cases/common/151 reserved targets/runtarget/meson.build
index 52c371b..7ba0b8c 100644
--- a/test cases/common/151 reserved targets/runtarget/meson.build
+++ b/test cases/common/151 reserved targets/runtarget/meson.build
@@ -1,2 +1,2 @@
configure_file(output : 'config.h', configuration: configuration_data())
-run_target('runtarget', command : ['echo'])
+run_target('runtarget', command : [find_program('echo.py')])
diff --git a/test cases/common/84 identical target name in subproject/meson.build b/test cases/common/84 identical target name in subproject/meson.build
index c5be5b7..64b4363 100644
--- a/test cases/common/84 identical target name in subproject/meson.build
+++ b/test cases/common/84 identical target name in subproject/meson.build
@@ -2,6 +2,8 @@ project('toplevel bar', 'c')
subproject('foo')
+true_cmd = find_program('true.py')
+
executable('bar', 'bar.c')
-run_target('nop', command : ['true'])
-custom_target('cus', output: ['cus.c'], command : ['true'])
+run_target('nop', command : [true_cmd])
+custom_target('cus', output: ['cus.c'], command : [true_cmd])
diff --git a/test cases/common/84 identical target name in subproject/subprojects/foo/meson.build b/test cases/common/84 identical target name in subproject/subprojects/foo/meson.build
index 06addb4..94b235c 100644
--- a/test cases/common/84 identical target name in subproject/subprojects/foo/meson.build
+++ b/test cases/common/84 identical target name in subproject/subprojects/foo/meson.build
@@ -1,5 +1,7 @@
project('subfoo', 'c')
+true_cmd = find_program('true.py')
+
executable('bar', 'bar.c')
-run_target('nop', command : ['true'])
-custom_target('cus', output: ['cus.c'], command : ['true'])
+run_target('nop', command : [true_cmd])
+custom_target('cus', output: ['cus.c'], command : [true_cmd])
diff --git a/test cases/common/84 identical target name in subproject/subprojects/foo/true.py b/test cases/common/84 identical target name in subproject/subprojects/foo/true.py
new file mode 100644
index 0000000..ddcac9e
--- /dev/null
+++ b/test cases/common/84 identical target name in subproject/subprojects/foo/true.py
@@ -0,0 +1,4 @@
+#!/usr/bin/env python3
+
+if __name__ == '__main__':
+ pass
diff --git a/test cases/common/84 identical target name in subproject/true.py b/test cases/common/84 identical target name in subproject/true.py
new file mode 100644
index 0000000..ddcac9e
--- /dev/null
+++ b/test cases/common/84 identical target name in subproject/true.py
@@ -0,0 +1,4 @@
+#!/usr/bin/env python3
+
+if __name__ == '__main__':
+ pass