aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/test')
-rw-r--r--unit-tests/test/script/parser/buildfile2
-rw-r--r--unit-tests/test/script/parser/setup-teardown.test7
2 files changed, 8 insertions, 1 deletions
diff --git a/unit-tests/test/script/parser/buildfile b/unit-tests/test/script/parser/buildfile
index a6be1f6..18acd20 100644
--- a/unit-tests/test/script/parser/buildfile
+++ b/unit-tests/test/script/parser/buildfile
@@ -11,6 +11,6 @@ filesystem config/{utility init operation} dump types-parsers \
test/{target script/{token lexer parser script}}
exe{driver}: cxx{driver} ../../../../build2/cxx{$src} $libs \
-test{pre-parse expansion here-document command-re-parse scope}
+test{pre-parse expansion here-document command-re-parse scope setup-teardown}
include ../../../../build2/
diff --git a/unit-tests/test/script/parser/setup-teardown.test b/unit-tests/test/script/parser/setup-teardown.test
new file mode 100644
index 0000000..fa940fd
--- /dev/null
+++ b/unit-tests/test/script/parser/setup-teardown.test
@@ -0,0 +1,7 @@
+$* <"+cmd;" 2>>EOE != 0 # semi-after-setup
+testscript:1:5: error: expected newline instead of ';'
+EOE
+
+$* <"-cmd;" 2>>EOE != 0 # semi-after-tdown
+testscript:1:5: error: expected newline instead of ';'
+EOE