blob: bb0672e353c6676cdce64801d5660a7535db81fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# file : libbuild2/build/script/parser+diag.test.testscript
# license : MIT; see accompanying LICENSE file
test.options += -g
: name
:
$* test <<EOI >>EOO
echo abc
EOI
name: test
EOO
: name-deduce
:
$* <<EOI >>EOO
echo abc
EOI
name: echo
EOO
: diag
:
$* <<EOI >>~%EOO%
echo abc
cat abc
diag abc '==>' $>
cp abc xyz
EOI
%diag: abc ==> .+file\{driver\.\}%
EOO
: ambiguity
:
{
: name
:
$* test <<EOI 2>>EOE != 0
echo abc
diag xyz
EOI
buildfile:12:1: error: both low-verbosity script diagnostics name and 'diag' builtin call
buildfile:10: info: script name specified here
EOE
: diag
:
$* <<EOI 2>>EOE != 0
echo abc
diag abc
cat abc
diag xyz
EOI
buildfile:14:1: error: multiple 'diag' builtin calls
buildfile:12:1: info: previous call is here
EOE
}
|