aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-11-10 14:47:35 -0500
committerGitHub <noreply@github.com>2016-11-10 14:47:35 -0500
commite02aaad63286169aebf63109363fed648a185b05 (patch)
treea44ba27d19b09bd0b225a643f496c975007dc5a2 /test cases
parentfd425d56a5680ab48d1cd03a140c249d90999a09 (diff)
parentb1898fd13959cbd49987efedef68a38ab9abb464 (diff)
downloadmeson-e02aaad63286169aebf63109363fed648a185b05.zip
meson-e02aaad63286169aebf63109363fed648a185b05.tar.gz
meson-e02aaad63286169aebf63109363fed648a185b05.tar.bz2
Merge pull request #1011 from centricular/runtarget-files-rel-builddir
ninja: Pass absolute path of files to run targets
Diffstat (limited to 'test cases')
-rwxr-xr-xtest cases/common/58 run target/check_exists.py7
-rw-r--r--test cases/common/58 run target/meson.build4
2 files changed, 9 insertions, 2 deletions
diff --git a/test cases/common/58 run target/check_exists.py b/test cases/common/58 run target/check_exists.py
new file mode 100755
index 0000000..62cbe23
--- /dev/null
+++ b/test cases/common/58 run target/check_exists.py
@@ -0,0 +1,7 @@
+#!/usr/bin/env python
+
+import os
+import sys
+
+if not os.path.isfile(sys.argv[1]):
+ raise Exception("Couldn't find {!r}".format(sys.argv[1]))
diff --git a/test cases/common/58 run target/meson.build b/test cases/common/58 run target/meson.build
index 5824c74..0540b80 100644
--- a/test cases/common/58 run target/meson.build
+++ b/test cases/common/58 run target/meson.build
@@ -35,8 +35,8 @@ python3 = find_program('python3')
run_target('py3hi',
command : [python3, '-c', 'print("I am Python3.")'])
-run_target('ct_in_arg',
- command : ['echo', hex, files('helloprinter.c')])
+run_target('check_exists',
+ command : [find_program('check_exists.py'), files('helloprinter.c')])
# What if the output of a custom_target is the command to
# execute. Obviously this will not work as hex is not an