-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path10_define.tush
More file actions
86 lines (69 loc) · 2.09 KB
/
Copy path10_define.tush
File metadata and controls
86 lines (69 loc) · 2.09 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
$ ./{{MAKESURE}} -f tests/10_define.sh testA
| goal 'testA' ...
| A=aaa
$ ./{{MAKESURE}} -f tests/10_define.sh testA -D A="val with spaces\"'"
| goal 'testA' ...
| A=val with spaces"'
$ ./{{MAKESURE}} -f tests/10_define.sh testB
| goal 'testB' ...
| B=aaabbb
$ ./{{MAKESURE}} -f tests/10_define.sh -D B=xxx testB
| goal 'testB' ...
| B=xxx
$ ./{{MAKESURE}} -f tests/10_define.sh -D A=yyy testB
| goal 'testB' ...
| B=yyybbb
$ ./{{MAKESURE}} -f tests/10_define.sh testC
| goal 'testC' ...
| C=
$ ./{{MAKESURE}} -f tests/10_define.sh testABC
| goal 'testA' ...
| A=aaa
| goal 'testB' ...
| B=aaabbb
| goal 'testC' ...
| C=
| goal 'testABC' [empty].
$ ./{{MAKESURE}} -f tests/10_define.sh testABC --define A=111 -D "B=222" --define 'C=333'
| goal 'testA' ...
| A=111
| goal 'testB' ...
| B=222
| goal 'testC' ...
| C=333
| goal 'testABC' [empty].
$ ./{{MAKESURE}} -f tests/10_define.sh must_be_reached1
| goal 'must_be_reached1' [already satisfied].
$ ./{{MAKESURE}} -f tests/10_define.sh must_be_reached2
| goal 'must_be_reached2' [already satisfied].
$ ./{{MAKESURE}} -f tests/10_define.sh children_reached_or_not
| goal 'must_be_reached1' [already satisfied].
| goal 'must_be_reached2' [already satisfied].
| goal 'other_goal_2' ...
| other goal 2
| goal 'is_not_reached' ...
| should show
| goal 'children_reached_or_not' [empty].
$ ./{{MAKESURE}} -f tests/10_define.sh is_not_reached
| goal 'other_goal_2' ...
| other goal 2
| goal 'is_not_reached' ...
| should show
$ ./{{MAKESURE}} -f tests/10_define.sh children_reached_or_not -d
| Resolved goals to reach for 'children_reached_or_not':
| other_goal_2
| is_not_reached
$ ./{{MAKESURE}} -f tests/10_define.sh test_commented_define
| goal 'test_commented_define' ...
| in goal: value
| in child process: value
$ ./{{MAKESURE}} -f tests/10_define.sh echo
| goal 'echo' ...
| Hello
$ ./{{MAKESURE}} -f tests/10_define_in_goal.sh
@ Shell code is not allowed outside goals/libs:
@ tests/10_define_in_goal.sh:4: echo "$0"
? 1
$ ./{{MAKESURE}} -f tests/10_define_issue_142.sh issue142
| goal 'issue142' ...
| a b