Skip to content

Commit

Permalink
Implement stricter parsing #141 : add test
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Oct 8, 2023
1 parent 81ebb2b commit d55b143
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/28_revamp_define.tush
Original file line number Diff line number Diff line change
Expand Up @@ -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
37 changes: 37 additions & 0 deletions tests/28_revamp_define_2_err_quoting.sh
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" ""

0 comments on commit d55b143

Please sign in to comment.