From a473abe80f4c42a366f0573bbbc762fa440b7fe6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 26 Apr 2022 10:39:03 +0200 Subject: Use new cmdline type for canned command lines in {Build,Test}script --- tests/recipe/buildscript/testscript | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests/recipe') diff --git a/tests/recipe/buildscript/testscript b/tests/recipe/buildscript/testscript index 910ee67..8632280 100644 --- a/tests/recipe/buildscript/testscript +++ b/tests/recipe/buildscript/testscript @@ -700,6 +700,30 @@ posix = ($cxx.target.class != 'windows') $* clean 2>- } +: canned-cmdline +: +{ + cat <=buildfile; + ./: + {{ + x = echo >| + y = [cmdline] echo >| + diag update + $x foo + $y bar + ([cmdline] $x) baz + }} + EOI + + $* >> EOO 2>>EOE + bar + baz + EOO + update + >| foo + EOE +} + : timeout : if $posix -- cgit v1.1