summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-24 18:14:25 +0100
committerMattias Andrée <maandree@kth.se>2022-01-24 18:14:25 +0100
commitd44af0e0863c192e1d1513519a2b8f0651fb9b31 (patch)
tree1fb530607b7067c0985c58b2e84f8511c86396f2
parenttest: print symbol names to exit codes (diff)
downloadmakel-d44af0e0863c192e1d1513519a2b8f0651fb9b31.tar.gz
makel-d44af0e0863c192e1d1513519a2b8f0651fb9b31.tar.bz2
makel-d44af0e0863c192e1d1513519a2b8f0651fb9b31.tar.xz
Add more test cases
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--tests/comment_cont.mk3
-rw-r--r--tests/cont_without_ws.mk3
-rw-r--r--tests/noninitial_bad_ws.mk2
-rw-r--r--tests/unindented_cont.mk3
4 files changed, 11 insertions, 0 deletions
diff --git a/tests/comment_cont.mk b/tests/comment_cont.mk
new file mode 100644
index 0000000..95b2635
--- /dev/null
+++ b/tests/comment_cont.mk
@@ -0,0 +1,3 @@
+#:2:
+#\
+ this line is a comment because of the continuation above
diff --git a/tests/cont_without_ws.mk b/tests/cont_without_ws.mk
new file mode 100644
index 0000000..0b70d30
--- /dev/null
+++ b/tests/cont_without_ws.mk
@@ -0,0 +1,3 @@
+#:2:
+OBJ = make-will-actually\
+insert-a-whitespace
diff --git a/tests/noninitial_bad_ws.mk b/tests/noninitial_bad_ws.mk
new file mode 100644
index 0000000..93ad40e
--- /dev/null
+++ b/tests/noninitial_bad_ws.mk
@@ -0,0 +1,2 @@
+#:6:
+ foo: bar # This line is preceded by a vertical tab following a <space>
diff --git a/tests/unindented_cont.mk b/tests/unindented_cont.mk
new file mode 100644
index 0000000..ebd5adc
--- /dev/null
+++ b/tests/unindented_cont.mk
@@ -0,0 +1,3 @@
+#:2:
+OBJ = \
+obj.o