aboutsummaryrefslogtreecommitdiff
path: root/tests/recipe/buildscript/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-07-31 16:57:51 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-08-03 10:50:42 +0300
commit61c77b931a735a3305eabc3e1f0ae1a6cc4d3709 (patch)
tree3af9a8fee9643575a9b2296cda99878f55f1540e /tests/recipe/buildscript/testscript
parentbe464b7496f5d02718ae0cb2f884b3bf3d19f3e6 (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/testscript22
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>-
+}