Skip to content

Commit

Permalink
Don't evaluate @reached_if unless the goal is required #104 : tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Feb 8, 2022
1 parent ba3c63b commit f62e065
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/25_lazy_reached_if.tush
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

$ cd "$MYDIR"; ./$MAKESURE -f tests/25_lazy_reached_if_loop.sh a
@ There is a loop in goal dependencies via a -> b
? 1

$ cd "$MYDIR"; ./$MAKESURE -f tests/25_lazy_reached_if_loop.sh b
@ There is a loop in goal dependencies via b -> a
? 1

$ cd "$MYDIR"; ./$MAKESURE -f tests/25_lazy_reached_if.sh a
| reached_if@a
| reached_if@b
| goal 'b' [already satisfied].
| goal 'a' ...
| a

$ cd "$MYDIR"; ./$MAKESURE -f tests/25_lazy_reached_if.sh b
| reached_if@b
| goal 'b' [already satisfied].

$ cd "$MYDIR"; ./$MAKESURE -f tests/25_lazy_reached_if.sh c
| reached_if@c
| goal 'c' ...
| c

$ cd "$MYDIR"; ./$MAKESURE -f tests/25_lazy_reached_if.sh d
| goal 'd' ...
| d

0 comments on commit f62e065

Please sign in to comment.