-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
32 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
@define A=aaa | ||
@define B=${A}bbb | ||
C=ccc | ||
|
||
@goal testA | ||
echo A=$A | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
|
||
echo 'code in prelude' | ||
echo 'more code in prelude' | ||
|
||
@reached_if true | ||
@depends_on g1 | ||
@doc Doc in prelude | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,49 @@ | ||
|
||
$ cd "$MYDIR"; ./$MAKESURE -f tests/12_errors.sh | ||
@ Shell code is not allowed in prelude area: | ||
@ tests/12_errors.sh:2: echo 'code in prelude' | ||
@ Only use @reached_if in @goal: | ||
@ tests/12_errors.sh:2: @reached_if true | ||
@ tests/12_errors.sh:5: @reached_if true | ||
@ Only use @depends_on in @goal: | ||
@ tests/12_errors.sh:3: @depends_on g1 | ||
@ tests/12_errors.sh:6: @depends_on g1 | ||
@ Only use @doc in @goal: | ||
@ tests/12_errors.sh:4: @doc Doc in prelude | ||
@ tests/12_errors.sh:7: @doc Doc in prelude | ||
@ Option 'unsupported' is not supported: | ||
@ tests/12_errors.sh:5: @options unsupported | ||
@ tests/12_errors.sh:8: @options unsupported | ||
@ Provide at least one option: | ||
@ tests/12_errors.sh:6: @options | ||
@ tests/12_errors.sh:9: @options | ||
@ Shell 'unsupported' is not supported: | ||
@ tests/12_errors.sh:7: @shell unsupported | ||
@ tests/12_errors.sh:10: @shell unsupported | ||
@ Shell '' is not supported: | ||
@ tests/12_errors.sh:8: @shell | ||
@ tests/12_errors.sh:11: @shell | ||
@ Only use @use_lib in @goal: | ||
@ tests/12_errors.sh:9: @use_lib lib1 | ||
@ tests/12_errors.sh:12: @use_lib lib1 | ||
@ Goal must have a name: | ||
@ tests/12_errors.sh:11: @goal | ||
@ tests/12_errors.sh:14: @goal | ||
@ Goal 'g1' is already defined: | ||
@ tests/12_errors.sh:17: @goal g1 | ||
@ tests/12_errors.sh:20: @goal g1 | ||
@ Provide at least one dependency: | ||
@ tests/12_errors.sh:18: @depends_on | ||
@ tests/12_errors.sh:21: @depends_on | ||
@ Multiple @reached_if not allowed for a goal: | ||
@ tests/12_errors.sh:20: @reached_if false | ||
@ tests/12_errors.sh:23: @reached_if false | ||
@ Only use @shell in prelude: | ||
@ tests/12_errors.sh:25: @shell sh | ||
@ tests/12_errors.sh:28: @shell sh | ||
@ Only use @define in prelude: | ||
@ tests/12_errors.sh:26: @define A=1 | ||
@ tests/12_errors.sh:29: @define A=1 | ||
@ Multiple @doc not allowed for a goal: | ||
@ tests/12_errors.sh:31: @doc doc2 | ||
@ tests/12_errors.sh:34: @doc doc2 | ||
@ Only use @options in prelude: | ||
@ tests/12_errors.sh:32: @options timing | ||
@ tests/12_errors.sh:35: @options timing | ||
@ Unknown directive: @unknown_directive: | ||
@ tests/12_errors.sh:33: @unknown_directive arg | ||
@ tests/12_errors.sh:36: @unknown_directive arg | ||
@ You can only use one @lib in a @goal: | ||
@ tests/12_errors.sh:35: @use_lib lib2 | ||
@ tests/12_errors.sh:38: @use_lib lib2 | ||
@ Goal 'g1' has unknown dependency 'unknown': | ||
@ tests/12_errors.sh:15: @depends_on unknown | ||
@ tests/12_errors.sh:18: @depends_on unknown | ||
@ Goal 'g2' uses unknown lib 'unknown': | ||
@ tests/12_errors.sh:24: @use_lib unknown | ||
@ tests/12_errors.sh:27: @use_lib unknown | ||
@ Goal 'g13' uses unknown lib 'unknown1': | ||
@ tests/12_errors.sh:38: @use_lib unknown1 | ||
@ tests/12_errors.sh:41: @use_lib unknown1 | ||
@ Goal 'g14' has unknown dependency 'unknown1': | ||
@ tests/12_errors.sh:41: @depends_on unknown1 | ||
@ tests/12_errors.sh:44: @depends_on unknown1 | ||
? 1 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
|
||
@options tracing | ||
|
||
A=123 | ||
echo "prelude $A" | ||
|
||
@goal default | ||
echo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters