aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/166 custom target template substitution
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-12-03 23:32:48 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-03 23:32:48 +0200
commit6d03111638f9514ad7f5391006dca2d06aa92b84 (patch)
tree0a73d46dad688007caba185149e54d671277378b /test cases/common/166 custom target template substitution
parent521933357dee601ae1f057cbeb1e19fbf20a70e7 (diff)
downloadmeson-6d03111638f9514ad7f5391006dca2d06aa92b84.zip
meson-6d03111638f9514ad7f5391006dca2d06aa92b84.tar.gz
meson-6d03111638f9514ad7f5391006dca2d06aa92b84.tar.bz2
Minor fixes.
Diffstat (limited to 'test cases/common/166 custom target template substitution')
-rw-r--r--test cases/common/166 custom target template substitution/checkcopy.py9
-rw-r--r--test cases/common/166 custom target template substitution/foo.c.in6
-rw-r--r--test cases/common/166 custom target template substitution/meson.build17
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)