diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-03 23:32:48 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-03 23:32:48 +0200 |
commit | 6d03111638f9514ad7f5391006dca2d06aa92b84 (patch) | |
tree | 0a73d46dad688007caba185149e54d671277378b /test cases/common/166 custom target template substitution | |
parent | 521933357dee601ae1f057cbeb1e19fbf20a70e7 (diff) | |
download | meson-6d03111638f9514ad7f5391006dca2d06aa92b84.zip meson-6d03111638f9514ad7f5391006dca2d06aa92b84.tar.gz meson-6d03111638f9514ad7f5391006dca2d06aa92b84.tar.bz2 |
Minor fixes.
Diffstat (limited to 'test cases/common/166 custom target template substitution')
3 files changed, 0 insertions, 32 deletions
diff --git a/test cases/common/166 custom target template substitution/checkcopy.py b/test cases/common/166 custom target template substitution/checkcopy.py deleted file mode 100644 index ab9f436..0000000 --- a/test cases/common/166 custom target template substitution/checkcopy.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env python3 - -import sys -import shutil - -if '@INPUT1@' in sys.argv[1]: - shutil.copyfile(sys.argv[2], sys.argv[3]) -else: - sys.exit('String @INPUT1@ not found in "{}"'.format(sys.argv[1])) diff --git a/test cases/common/166 custom target template substitution/foo.c.in b/test cases/common/166 custom target template substitution/foo.c.in deleted file mode 100644 index d53846f..0000000 --- a/test cases/common/166 custom target template substitution/foo.c.in +++ /dev/null @@ -1,6 +0,0 @@ -#include <stdio.h> - -int main() { - printf("foo is working.\n"); - return 0; -} diff --git a/test cases/common/166 custom target template substitution/meson.build b/test cases/common/166 custom target template substitution/meson.build deleted file mode 100644 index 3f6a159..0000000 --- a/test cases/common/166 custom target template substitution/meson.build +++ /dev/null @@ -1,17 +0,0 @@ -project('custom target template substitution', 'c') - -check = find_program('checkcopy.py') - -config = configuration_data() - -in = configure_file(configuration : config, output : 'x@IN') - -# Check that substitution does not find @FOO@ and then misses @INPUT0@. -# Check the resulting x@INPUT1@ is not replaced. -foo = custom_target('runcheck', - input : [in, 'foo.c.in'], - output : 'foo.c', - command : [check, '-D@FOO@INPUT0@PUT1@', '@INPUT1@', '@OUTPUT@'] -) - -executable('foo', foo) |