diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-07-31 16:57:51 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-08-03 10:50:42 +0300 |
commit | 61c77b931a735a3305eabc3e1f0ae1a6cc4d3709 (patch) | |
tree | 3af9a8fee9643575a9b2296cda99878f55f1540e /tests/recipe/buildscript/testscript | |
parent | be464b7496f5d02718ae0cb2f884b3bf3d19f3e6 (diff) |
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.
Diffstat (limited to 'tests/recipe/buildscript/testscript')
-rw-r--r-- | tests/recipe/buildscript/testscript | 22 |
1 files changed, 22 insertions, 0 deletions
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 <<EOI >=buildfile; + foo: bar + {{ + echo 'baz' >? $path($<) + }} + EOI + + $* 2>>/~%EOE% != 0; + %.+ + %--- .+/bar% + +++ stdout + %.+ + EOE + + $* clean 2>- +} |