aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/failing/41 custom target plainname many inputs
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/failing/41 custom target plainname many inputs')
-rw-r--r--meson/test cases/failing/41 custom target plainname many inputs/1.txt1
-rw-r--r--meson/test cases/failing/41 custom target plainname many inputs/2.txt1
-rw-r--r--meson/test cases/failing/41 custom target plainname many inputs/catfiles.py9
-rw-r--r--meson/test cases/failing/41 custom target plainname many inputs/meson.build8
-rw-r--r--meson/test cases/failing/41 custom target plainname many inputs/test.json7
5 files changed, 26 insertions, 0 deletions
diff --git a/meson/test cases/failing/41 custom target plainname many inputs/1.txt b/meson/test cases/failing/41 custom target plainname many inputs/1.txt
new file mode 100644
index 000000000..d00491fd7
--- /dev/null
+++ b/meson/test cases/failing/41 custom target plainname many inputs/1.txt
@@ -0,0 +1 @@
+1
diff --git a/meson/test cases/failing/41 custom target plainname many inputs/2.txt b/meson/test cases/failing/41 custom target plainname many inputs/2.txt
new file mode 100644
index 000000000..0cfbf0888
--- /dev/null
+++ b/meson/test cases/failing/41 custom target plainname many inputs/2.txt
@@ -0,0 +1 @@
+2
diff --git a/meson/test cases/failing/41 custom target plainname many inputs/catfiles.py b/meson/test cases/failing/41 custom target plainname many inputs/catfiles.py
new file mode 100644
index 000000000..1c53e24e7
--- /dev/null
+++ b/meson/test cases/failing/41 custom target plainname many inputs/catfiles.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python3
+
+import sys
+
+out = sys.argv[-1]
+with open(out, 'wb') as o:
+ for infile in sys.argv[1:-1]:
+ with open(infile, 'rb') as f:
+ o.write(f.read())
diff --git a/meson/test cases/failing/41 custom target plainname many inputs/meson.build b/meson/test cases/failing/41 custom target plainname many inputs/meson.build
new file mode 100644
index 000000000..1bcfc0672
--- /dev/null
+++ b/meson/test cases/failing/41 custom target plainname many inputs/meson.build
@@ -0,0 +1,8 @@
+project('plain name many inputs', 'c')
+
+catfiles = find_program('catfiles.py')
+
+custom_target('plainname-inputs',
+ input : ['1.txt', '2.txt'],
+ output : '@PLAINNAME@.dat',
+ command : [catfiles, '@INPUT@', '@OUTPUT@'])
diff --git a/meson/test cases/failing/41 custom target plainname many inputs/test.json b/meson/test cases/failing/41 custom target plainname many inputs/test.json
new file mode 100644
index 000000000..8c15cda5a
--- /dev/null
+++ b/meson/test cases/failing/41 custom target plainname many inputs/test.json
@@ -0,0 +1,7 @@
+{
+ "stdout": [
+ {
+ "line": "test cases/failing/41 custom target plainname many inputs/meson.build:5:0: ERROR: Output cannot contain @PLAINNAME@ or @BASENAME@ when there is more than one input (we can't know which to use)"
+ }
+ ]
+}