Skip to content

Commit

Permalink
Allow @glob goals to be parameterized #155
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Jan 5, 2024
1 parent c7f8088 commit 5f8c46d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function handleGoalGlob( goalName,globAllGoal,globSingle,priv,i,pattern,nfMax,
} else
pattern = $(nfMax = 4)
if (NF > nfMax && "@params" != $(nfMax + 1))
addError("nothing allowed after glob pattern") # TODO adjust error
addError("nothing or @params allowed after glob pattern")
else if (pattern == "")
addError("absent glob pattern")
else {
Expand Down
6 changes: 3 additions & 3 deletions tests/12_errors.tush
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ $ ./$MAKESURE -f tests/12_errors.sh
@ tests/12_errors.sh:48: @goal @private
@ nothing allowed after goal name:
@ tests/12_errors.sh:51: @goal g15 should not have anything after goal name
@ nothing allowed after glob pattern:
@ nothing or @params allowed after glob pattern:
@ tests/12_errors.sh:54: @goal g17 @glob '*.txt' should not have anything after glob pattern
@ nothing allowed after glob pattern:
@ nothing or @params allowed after glob pattern:
@ tests/12_errors.sh:57: @goal @glob '*.txt' should not have anything after glob pattern
@ nothing allowed after glob pattern:
@ nothing or @params allowed after glob pattern:
@ tests/12_errors.sh:58: @goal @glob '*.txt' should_not_have_anything_after_glob_pattern
@ absent glob pattern:
@ tests/12_errors.sh:61: @goal @glob # absent glob pattern
Expand Down

0 comments on commit 5f8c46d

Please sign in to comment.