Skip to content

Commit

Permalink
Consider adding --dry-run option #29 : issues with --resolved : t…
Browse files Browse the repository at this point in the history
…ests added
  • Loading branch information
xonixx committed Feb 9, 2022
1 parent a285436 commit 5a1d782
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/26_resolved.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

# https://github.com/xonixx/makesure/issues/29#issuecomment-1032932835

@goal a
@reached_if [[ $REACHED == *a* ]]
@depends_on b c
echo a

@goal b
@reached_if [[ $REACHED == *b* ]]
echo b

@goal c
@reached_if [[ $REACHED == *c* ]]
echo c
23 changes: 23 additions & 0 deletions tests/26_resolved.tush
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

$ cd "$MYDIR"; ./$MAKESURE -f tests/26_resolved.sh --resolved a
| Resolved goals to reach for 'a':
| b
| c
| a

$ cd "$MYDIR"; ./$MAKESURE -f tests/26_resolved.sh -D REACHED=c --resolved a
| Resolved goals to reach for 'a':
| b
| a

$ cd "$MYDIR"; ./$MAKESURE -f tests/26_resolved.sh -D REACHED=b --resolved a
| Resolved goals to reach for 'a':
| c
| a

$ cd "$MYDIR"; ./$MAKESURE -f tests/26_resolved.sh -D REACHED=bc --resolved a
| Resolved goals to reach for 'a':
| a

$ cd "$MYDIR"; ./$MAKESURE -f tests/26_resolved.sh -D REACHED=a --resolved a
| Resolved goals to reach for 'a':

0 comments on commit 5a1d782

Please sign in to comment.