-
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.
Implement stricter parsing #141 : add test
- Loading branch information
Showing
2 changed files
with
40 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 |
---|---|---|
|
@@ -69,3 +69,6 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_1.sh g7 | |
$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_1.sh g8 | ||
| goal 'g8' ... | ||
| 1.2.3 [email protected] default\}$" | ||
|
||
|
||
$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_2_err_quoting.sh -l |
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,37 @@ | ||
|
||
# see https://github.com/xonixx/makesure/issues/141 | ||
|
||
# ERRORS: | ||
|
||
@shell "sh" | ||
@options "tracing" | ||
|
||
@define "NAME" 'value' | ||
|
||
@goal "g1" | ||
@doc "doc" | ||
@depends_on "goal_name" | ||
@depends_on goal_name "goal_name" | ||
|
||
@goal goal_name | ||
@goal goal_name1 | ||
|
||
@goal g2 "@private" | ||
@use_lib "lib_name" | ||
|
||
@lib "lib_name" | ||
|
||
@goal gg1 "@glob" '*.tush' | ||
@goal gg2 @glob "*.tush" | ||
|
||
@goal pg "@params" P | ||
@goal pg1 @params "P" | ||
|
||
# GOOD: | ||
|
||
@define NAME1 "value" | ||
|
||
@goal pg2 @params A B C | ||
|
||
@goal g3 | ||
@depends_on pg2 @args "$NAME1" "value" "" |