From 91421e7889508177744c8b004aa5fece4711cbfb Mon Sep 17 00:00:00 2001 From: xonix Date: Mon, 23 Aug 2021 22:49:16 +0300 Subject: [PATCH] Redesign @goal_glob #34 --- tests/11_goal_glob.sh | 4 ++++ tests/11_goal_glob.tush | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/tests/11_goal_glob.sh b/tests/11_goal_glob.sh index bf2ab13..cf4919c 100644 --- a/tests/11_goal_glob.sh +++ b/tests/11_goal_glob.sh @@ -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" diff --git a/tests/11_goal_glob.tush b/tests/11_goal_glob.tush index b1cf3b7..19bbd16 100644 --- a/tests/11_goal_glob.tush +++ b/tests/11_goal_glob.tush @@ -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 @@ -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].