-
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.
Should report only 1 error out of repeating due to glob #159 : add test
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@lib | ||
|
||
# should report only 1 error out of repeating due to glob | ||
|
||
@goal @glob 'glob_test/*.txt' | ||
@doc 'aaa' | ||
@doc 'bbb' | ||
@reached_if true | ||
@reached_if true | ||
@use_lib | ||
@use_lib | ||
@depends_on @args |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
$ ./$MAKESURE -f tests/30_errors_when_glob.sh | ||
@ Multiple @doc not allowed for a goal: | ||
@ tests/30_errors_when_glob.sh:7: @doc 'bbb' | ||
@ Multiple @reached_if not allowed for a goal: | ||
@ tests/30_errors_when_glob.sh:9: @reached_if true | ||
@ You can only use one @lib in a @goal: | ||
@ tests/30_errors_when_glob.sh:11: @use_lib | ||
@ @args only allowed at position 3: | ||
@ tests/30_errors_when_glob.sh:12: @depends_on @args | ||
? 1 |