Skip to content

Commit

Permalink
Revamp @define #140 : fixing tests for parseCli_2
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Sep 17, 2023
1 parent bbc6a37 commit 87fa694
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ function registerDependsOn(goalName, i,dep,x,y) {
x = goalName SUBSEP DependenciesCnt[goalName] - 1
y = x SUBSEP DependencyArgsCnt[x]++
DependencyArgs[y] = $i
DependencyArgsType[y] = Quotes[i] ? "str" : "var"
DependencyArgsType[y] = "u" == Quotes[i] ? "var" : "str"
}
} else
registerDependency(goalName, dep)
Expand Down
14 changes: 7 additions & 7 deletions tests/27_parameterized_goals.tush
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,15 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_10_errors.sh -l
@ nothing allowed after goal name:
@ tests/27_parameterized_goals_10_errors.sh:43: @goal a7 b7 c7 @params D # wrong goal name / @params in wrong pos
@ @param name should match /^[A-Z_][A-Z0-9_]*$/: 'a':
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A-B _A %& # wrong param names
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A.B _A @@ # wrong param names
@ @param name should match /^[A-Z_][A-Z0-9_]*$/: 'hello':
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A-B _A %& # wrong param names
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A.B _A @@ # wrong param names
@ @param name should match /^[A-Z_][A-Z0-9_]*$/: '1A':
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A-B _A %& # wrong param names
@ @param name should match /^[A-Z_][A-Z0-9_]*$/: 'A-B':
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A-B _A %& # wrong param names
@ @param name should match /^[A-Z_][A-Z0-9_]*$/: '%&':
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A-B _A %& # wrong param names
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A.B _A @@ # wrong param names
@ @param name should match /^[A-Z_][A-Z0-9_]*$/: 'A.B':
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A.B _A @@ # wrong param names
@ @param name should match /^[A-Z_][A-Z0-9_]*$/: '@@':
@ tests/27_parameterized_goals_10_errors.sh:46: @goal g @params a hello 1A A.B _A @@ # wrong param names
@ Goal 'a' has unknown dependency 'unknown1':
@ tests/27_parameterized_goals_10_errors.sh:10: @depends_on unknown1 # err unknown dep
@ Goal 'a' has unknown dependency 'unknown2':
Expand Down
2 changes: 1 addition & 1 deletion tests/27_parameterized_goals_10_errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
@goal a7 b7 c7 @params D # wrong goal name / @params in wrong pos
echo ""

@goal g @params a hello 1A A-B _A %& # wrong param names
@goal g @params a hello 1A A.B _A @@ # wrong param names
@goal g1 @params GOOD _GOOD_ GOOD_123 GOOD123 _1 _ ___

0 comments on commit 87fa694

Please sign in to comment.