From 61c77b931a735a3305eabc3e1f0ae1a6cc4d3709 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 31 Jul 2020 16:57:51 +0300 Subject: Fix buildscript diagnostics so diff output is always in unified format Also make sure diff refers program stdout as 'stdout' rather than '-' in the test rule diagnostics. --- tests/recipe/buildscript/testscript | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/recipe/buildscript/testscript b/tests/recipe/buildscript/testscript index 26718df..551f64a 100644 --- a/tests/recipe/buildscript/testscript +++ b/tests/recipe/buildscript/testscript @@ -85,3 +85,25 @@ $* clean 2>- } + +: diff-label +: +{ + echo 'bar' >=bar; + + cat <=buildfile; + foo: bar + {{ + echo 'baz' >? $path($<) + }} + EOI + + $* 2>>/~%EOE% != 0; + %.+ + %--- .+/bar% + +++ stdout + %.+ + EOE + + $* clean 2>- +} -- cgit v1.1