From 0c3fcfa85bfc5944422d10a4ef8cd42f7732c9b1 Mon Sep 17 00:00:00 2001 From: xonix Date: Tue, 5 Oct 2021 13:06:18 +0300 Subject: [PATCH] Improve parsing algorithm to handle spaces and comments #63 --- tests/22_parsing 1.txt | 1 + tests/22_parsing 2.txt | 1 + tests/22_parsing_comments.sh | 7 +++++++ tests/22_parsing_spaces.sh | 8 ++++++++ 4 files changed, 17 insertions(+) create mode 100644 tests/22_parsing 1.txt create mode 100644 tests/22_parsing 2.txt create mode 100644 tests/22_parsing_comments.sh create mode 100644 tests/22_parsing_spaces.sh diff --git a/tests/22_parsing 1.txt b/tests/22_parsing 1.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/22_parsing 1.txt @@ -0,0 +1 @@ +1 diff --git a/tests/22_parsing 2.txt b/tests/22_parsing 2.txt new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/tests/22_parsing 2.txt @@ -0,0 +1 @@ +2 diff --git a/tests/22_parsing_comments.sh b/tests/22_parsing_comments.sh new file mode 100644 index 0000000..3064e47 --- /dev/null +++ b/tests/22_parsing_comments.sh @@ -0,0 +1,7 @@ + + +@goal goal_with_comment # comment + echo goal_with_comment + +@goal test1 +@depends_on goal_with_comment \ No newline at end of file diff --git a/tests/22_parsing_spaces.sh b/tests/22_parsing_spaces.sh new file mode 100644 index 0000000..2632291 --- /dev/null +++ b/tests/22_parsing_spaces.sh @@ -0,0 +1,8 @@ + + +@goal @glob 22_parsing*.txt + echo "$ITEM" + cat "$ITEM" + +@goal test2 +@depends_on '22_parsing 2.txt' \ No newline at end of file