Skip to content

Commit

Permalink
#171 @call
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Jan 1, 2025
1 parent 0a06cff commit 98a3ced
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/32_calls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@

@goal 'x-updated'
@calls 'x-deleted'
@calls 'x-created'
@calls 'x-created'

@goal 'x-updated-1'
@calls 'x-deleted' 'x-created'

@goal a
@calls b
echo 'a body'

@goal b
echo 'b body'
13 changes: 13 additions & 0 deletions tests/32_calls.tush
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,16 @@ $ touch /tmp/x ; ./$MAKESURE -f tests/32_calls.sh x-updated
| running x-deleted
| goal 'x-created' ...
| running x-created

$ touch /tmp/x ; ./$MAKESURE -f tests/32_calls.sh x-updated-1
| goal 'x-updated-1' ...
| goal 'x-deleted' ...
| running x-deleted
| goal 'x-created' ...
| running x-created

$ ./$MAKESURE -f tests/32_calls.sh a
| goal 'a' ...
| goal 'b' ...
| b body
| a body

0 comments on commit 98a3ced

Please sign in to comment.