aboutsummaryrefslogtreecommitdiff
path: root/tests/dependency
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-13 07:14:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:35:29 +0200
commit741cce26c1caeacc0e578a8bef1efefa993adcc1 (patch)
treebe3dcd6db8c1fea92ada21a6fa8f88fd53047aec /tests/dependency
parent9a0f07035b34a356ce9b5601d71d388595762184 (diff)
Initial support for ad hoc C++ recipes
Diffstat (limited to 'tests/dependency')
-rw-r--r--tests/dependency/recipe/testscript27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/dependency/recipe/testscript b/tests/dependency/recipe/testscript
index 6cb4711..503ad7e 100644
--- a/tests/dependency/recipe/testscript
+++ b/tests/dependency/recipe/testscript
@@ -69,6 +69,22 @@ EOI
}}
EOE
+: basics-lang
+:
+$* <<EOI 2>>/~%EOE%
+alias{x}:
+{{ c++
+ void f ();
+}}
+dump alias{x}
+EOI
+<stdin>:5:1: dump:
+% .+/alias\{x\}:%
+ {{ c++
+ void f ();
+ }}
+EOE
+
: with-vars
:
$* <<EOI 2>>/~%EOE%
@@ -242,6 +258,17 @@ EOI
<stdin>:2:1: info: recipe block starts here
EOE
+: expected-lang
+:
+$* <<EOI 2>>EOE != 0
+alias{x}:
+{{ $lang
+ cmd
+}}
+EOI
+<stdin>:2:4: error: expected recipe language instead of '$'
+EOE
+
: header-attribute
:
$* <<EOI 2>>/~!EOE!