From 696b853a83828c63a2f4e6017bc585298112ee84 Mon Sep 17 00:00:00 2001 From: xonix Date: Sun, 10 Oct 2021 14:16:46 +0300 Subject: [PATCH] Natural ordering of @goal @glob is broken #64 --- tests/22_nat_order.sh | 9 +++++++++ tests/22_nat_order.tush | 24 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 tests/22_nat_order.sh create mode 100644 tests/22_nat_order.tush diff --git a/tests/22_nat_order.sh b/tests/22_nat_order.sh new file mode 100644 index 0000000..6f28997 --- /dev/null +++ b/tests/22_nat_order.sh @@ -0,0 +1,9 @@ + +@options silent + +@goal nat_order_test @glob *.tush +@reached_if [[ $INDEX -ge 22 ]] # only check the correct order on first 22 tests + echo "$ITEM" + +@goal default +@depends_on \ No newline at end of file diff --git a/tests/22_nat_order.tush b/tests/22_nat_order.tush new file mode 100644 index 0000000..f7cc22e --- /dev/null +++ b/tests/22_nat_order.tush @@ -0,0 +1,24 @@ + +$ cd "$MYDIR"; ./$MAKESURE -f tests/22_nat_order.sh nat_order_test +| 0_basic.tush +| 1_goals.tush +| 2_mydir.tush +| 3_loop.tush +| 4_trace.tush +| 5_shell.tush +| 6_reached_if.tush +| 7_options.tush +| 8_timing.tush +| 9_prelude.tush +| 10_define.tush +| 11_goal_glob.tush +| 12_errors.tush +| 13_doc.tush +| 14_private.tush +| 15_lib.tush +| 16_prelude_fail.tush +| 17_empty_prelude.tush +| 18_vars_priority.tush +| 19_optimize_goals.tush +| 20_list_goals.tush +| 21_parsing.tush