Skip to content

Commit

Permalink
@reached_if fails for more complex cases #113 : add failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Dec 10, 2022
1 parent 90d6ded commit bbe76fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/6_reached_if.tush
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh -d

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

$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if_issue_113.sh g1

$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if_issue_113.sh g2
| must show
10 changes: 10 additions & 0 deletions tests/6_reached_if_issue_113.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

@goal g1
@reached_if awk 'BEGIN { exit 0 }'
echo 'must not show'

@goal g2
@reached_if awk 'BEGIN { exit(1) }'
echo 'must show'


0 comments on commit bbe76fa

Please sign in to comment.