From 7b6e527f440cd7e6f8be2b07cee320ee6ca18786 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:41:38 +0200 Subject: Adding upstream version 1.0.1. Signed-off-by: Daniel Baumann --- test cases/failing/40 custom target plainname many inputs/1.txt | 1 + test cases/failing/40 custom target plainname many inputs/2.txt | 1 + .../failing/40 custom target plainname many inputs/catfiles.py | 9 +++++++++ .../failing/40 custom target plainname many inputs/meson.build | 8 ++++++++ .../failing/40 custom target plainname many inputs/test.json | 7 +++++++ 5 files changed, 26 insertions(+) create mode 100644 test cases/failing/40 custom target plainname many inputs/1.txt create mode 100644 test cases/failing/40 custom target plainname many inputs/2.txt create mode 100644 test cases/failing/40 custom target plainname many inputs/catfiles.py create mode 100644 test cases/failing/40 custom target plainname many inputs/meson.build create mode 100644 test cases/failing/40 custom target plainname many inputs/test.json (limited to 'test cases/failing/40 custom target plainname many inputs') diff --git a/test cases/failing/40 custom target plainname many inputs/1.txt b/test cases/failing/40 custom target plainname many inputs/1.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/test cases/failing/40 custom target plainname many inputs/1.txt @@ -0,0 +1 @@ +1 diff --git a/test cases/failing/40 custom target plainname many inputs/2.txt b/test cases/failing/40 custom target plainname many inputs/2.txt new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/test cases/failing/40 custom target plainname many inputs/2.txt @@ -0,0 +1 @@ +2 diff --git a/test cases/failing/40 custom target plainname many inputs/catfiles.py b/test cases/failing/40 custom target plainname many inputs/catfiles.py new file mode 100644 index 0000000..1c53e24 --- /dev/null +++ b/test cases/failing/40 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/test cases/failing/40 custom target plainname many inputs/meson.build b/test cases/failing/40 custom target plainname many inputs/meson.build new file mode 100644 index 0000000..8513bf8 --- /dev/null +++ b/test cases/failing/40 custom target plainname many inputs/meson.build @@ -0,0 +1,8 @@ +project('plain name many inputs') + +catfiles = find_program('catfiles.py') + +custom_target('plainname-inputs', + input : ['1.txt', '2.txt'], + output : '@PLAINNAME@.dat', + command : [catfiles, '@INPUT@', '@OUTPUT@']) diff --git a/test cases/failing/40 custom target plainname many inputs/test.json b/test cases/failing/40 custom target plainname many inputs/test.json new file mode 100644 index 0000000..f5c3abf --- /dev/null +++ b/test cases/failing/40 custom target plainname many inputs/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/40 custom target plainname many inputs/meson.build:5:0: ERROR: custom_target: output cannot contain \"@PLAINNAME@\" or \"@BASENAME@\" when there is more than one input (we can't know which to use)" + } + ] +} -- cgit v1.2.3