From a983a4b19dde28f42f26e7fcfa35420546c2beba Mon Sep 17 00:00:00 2001 From: xonix Date: Sat, 6 Jan 2024 23:23:38 +0200 Subject: [PATCH] Should report only 1 error out of repeating due to glob #159 : add test --- tests/30_errors_when_glob.sh | 12 ++++++++++++ tests/30_errors_when_glob.tush | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tests/30_errors_when_glob.sh create mode 100644 tests/30_errors_when_glob.tush diff --git a/tests/30_errors_when_glob.sh b/tests/30_errors_when_glob.sh new file mode 100644 index 0000000..96bb53c --- /dev/null +++ b/tests/30_errors_when_glob.sh @@ -0,0 +1,12 @@ +@lib + +# should report only 1 error out of repeating due to glob + +@goal @glob 'glob_test/*.txt' +@doc 'aaa' +@doc 'bbb' +@reached_if true +@reached_if true +@use_lib +@use_lib +@depends_on @args \ No newline at end of file diff --git a/tests/30_errors_when_glob.tush b/tests/30_errors_when_glob.tush new file mode 100644 index 0000000..3b61c17 --- /dev/null +++ b/tests/30_errors_when_glob.tush @@ -0,0 +1,11 @@ + +$ ./$MAKESURE -f tests/30_errors_when_glob.sh +@ Multiple @doc not allowed for a goal: +@ tests/30_errors_when_glob.sh:7: @doc 'bbb' +@ Multiple @reached_if not allowed for a goal: +@ tests/30_errors_when_glob.sh:9: @reached_if true +@ You can only use one @lib in a @goal: +@ tests/30_errors_when_glob.sh:11: @use_lib +@ @args only allowed at position 3: +@ tests/30_errors_when_glob.sh:12: @depends_on @args +? 1