Skip to content

Commit

Permalink
Redesign @goal_glob #34
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Aug 23, 2021
1 parent 01ff703 commit 91421e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/11_goal_glob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
@depends_on 11_goal_glob_2.txt
@depends_on 11_goal_glob_3.txt

@goal test2
@depends_on goal_name@11_goal_glob_2.txt
@depends_on goal_name@11_goal_glob_3.txt

@goal goal_name @glob 11_goal_glob*.txt
echo "goal_name ::: $ITEM :: $INDEX :: $TOTAL"
8 changes: 8 additions & 0 deletions tests/11_goal_glob.tush
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ $ cd "$MYDIR"; ./makesure -f tests/11_goal_glob.sh test1 -l
| 11_goal_glob_2.txt - test goal_glob
| 11_goal_glob_3.txt - test goal_glob
| test1
| test2
| goal_name@11_goal_glob_1.txt
| goal_name@11_goal_glob_2.txt
| goal_name@11_goal_glob_3.txt
Expand All @@ -18,3 +19,10 @@ $ cd "$MYDIR"; ./makesure -f tests/11_goal_glob.sh test1
| 11_goal_glob_3.txt :: 2 :: 3
| content 333
| goal 'test1' [empty].

$ cd "$MYDIR"; ./makesure -f tests/11_goal_glob.sh test2
| goal 'goal_name@11_goal_glob_2.txt' ...
| goal_name ::: 11_goal_glob_2.txt :: 1 :: 3
| goal 'goal_name@11_goal_glob_3.txt' ...
| goal_name ::: 11_goal_glob_3.txt :: 2 :: 3
| goal 'test2' [empty].

0 comments on commit 91421e7

Please sign in to comment.