diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-10 14:47:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-10 14:47:35 -0500 |
commit | e02aaad63286169aebf63109363fed648a185b05 (patch) | |
tree | a44ba27d19b09bd0b225a643f496c975007dc5a2 /test cases | |
parent | fd425d56a5680ab48d1cd03a140c249d90999a09 (diff) | |
parent | b1898fd13959cbd49987efedef68a38ab9abb464 (diff) | |
download | meson-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-x | test cases/common/58 run target/check_exists.py | 7 | ||||
-rw-r--r-- | test cases/common/58 run target/meson.build | 4 |
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 |