From 60bcc0c17567155d6c1be6c7af270878bdeb3640 Mon Sep 17 00:00:00 2001 From: xonix Date: Sun, 22 Jan 2023 02:25:19 +0200 Subject: [PATCH] Parameterized goals #115 --- tests/27_parameterized_goals.tush | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/tests/27_parameterized_goals.tush b/tests/27_parameterized_goals.tush index 0d14704..9bb8d6d 100644 --- a/tests/27_parameterized_goals.tush +++ b/tests/27_parameterized_goals.tush @@ -9,6 +9,15 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_1.sh -la | a | b@hello +$ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_1.sh -d a +| Resolved goals to reach for 'a': +| b@hello + +$ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_1.sh a +| goal 'b@hello' ... +| hello world +| goal 'a' [empty]. + $ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_2.sh -l | Available goals: | a @@ -20,3 +29,30 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_2.sh -la | a | b@hello | c@hello + +$ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_2.sh -d a +| Resolved goals to reach for 'a': +| c@hello +| b@hello + +$ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_2.sh -d b@hello +| Resolved goals to reach for 'b@hello': +| c@hello +| b@hello + +$ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_2.sh a +| goal 'c@hello' ... +| hello world from c +| goal 'b@hello' ... +| hello world from b +| goal 'a' [empty]. + +$ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_2.sh b@hello +| goal 'c@hello' ... +| hello world from c +| goal 'b@hello' ... +| hello world from b + +$ cd "$MYDIR"; ./$MAKESURE -f tests/27_parameterized_goals_2.sh c@hello +| goal 'c@hello' ... +| hello world from c