Skip to content

Commit

Permalink
Consider adding --dry-run option #29 : issues with --resolved : a…
Browse files Browse the repository at this point in the history
…lso exclude empty goals
  • Loading branch information
xonixx committed Feb 9, 2022
1 parent 885ca40 commit 422367f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ body,goalBody,goalBodies,resolvedGoals,exitCode, t0,t1,t2, goalTimed, list) {
printf " %s", quote2(ArgGoals[i],1)
print ":"
for (i = 0; i in resolvedGoals; i++)
if (!reachedGoals[goalName=resolvedGoals[i]])
if (!reachedGoals[goalName=resolvedGoals[i]] && !emptyGoals[goalName])
print " " quote2(goalName)
} else {
for (i = 0; i in resolvedGoals; i++) {
Expand Down
1 change: 0 additions & 1 deletion tests/10_define.tush
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/10_define.sh children_reached_or_not -d
| Resolved goals to reach for 'children_reached_or_not':
| other_goal_2
| is_not_reached
| children_reached_or_not

$ cd "$MYDIR"; ./$MAKESURE -f tests/10_define.sh test_commented_define
| goal 'test_commented_define' ...
Expand Down
1 change: 0 additions & 1 deletion tests/11_goal_glob.tush
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/11_goal_glob.sh -d '11_goal_glob*.txt'
| 11_goal_glob_1.txt
| 11_goal_glob_3.txt
| 11_goal_glob_10.txt
| '11_goal_glob*.txt'

$ cd "$MYDIR"; ./$MAKESURE -f tests/11_goal_glob.sh test1
| goal '11_goal_glob_1.txt' ...
Expand Down
1 change: 0 additions & 1 deletion tests/1_goals.tush
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/1_goals.sh -d
| ccc
| bbb
| aaa
| default

$ cd "$MYDIR"; ./$MAKESURE -f tests/1_goals.sh fail
| goal 'fail' ...
Expand Down
8 changes: 0 additions & 8 deletions tests/21_parsing.tush
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,12 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/21_parsing_quoting.sh -d
| no_space
| 'name with spaces'
| $'name with \' quote'
| 'goal|a'
| 'goal;b'
| 'goal&c'
| default

$ cd "$MYDIR"; bash -c "./$MAKESURE -f tests/21_parsing_quoting.sh -d default $'name with \' quote' 'goal|a'"
| Resolved goals to reach for 'default' $'name with \' quote' 'goal|a':
| no_space
| 'name with spaces'
| $'name with \' quote'
| 'goal|a'
| 'goal;b'
| 'goal&c'
| default

$ cd "$MYDIR"; ./$MAKESURE -f tests/21_parsing_quoting.sh
| goal 'no_space' ...
Expand Down
1 change: 0 additions & 1 deletion tests/6_reached_if.tush
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh
$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh -d
| Resolved goals to reach for 'default':
| aaa
| default

$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh --resolved bbb
| Resolved goals to reach for 'bbb':

0 comments on commit 422367f

Please sign in to comment.