diff --git a/tests/28_revamp_define.tush b/tests/28_revamp_define.tush index e4fa61b..ed9d5d6 100644 --- a/tests/28_revamp_define.tush +++ b/tests/28_revamp_define.tush @@ -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@example.com default\}$" + + +$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_2_err_quoting.sh -l diff --git a/tests/28_revamp_define_2_err_quoting.sh b/tests/28_revamp_define_2_err_quoting.sh new file mode 100644 index 0000000..408b182 --- /dev/null +++ b/tests/28_revamp_define_2_err_quoting.sh @@ -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" "" \ No newline at end of file