aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/test/script')
-rw-r--r--unit-tests/test/script/parser/setup-teardown.test28
1 files changed, 28 insertions, 0 deletions
diff --git a/unit-tests/test/script/parser/setup-teardown.test b/unit-tests/test/script/parser/setup-teardown.test
index fa940fd..00ff2b5 100644
--- a/unit-tests/test/script/parser/setup-teardown.test
+++ b/unit-tests/test/script/parser/setup-teardown.test
@@ -5,3 +5,31 @@ EOE
$* <"-cmd;" 2>>EOE != 0 # semi-after-tdown
testscript:1:5: error: expected newline instead of ';'
EOE
+
+$* <<EOI 2>>EOE != 0 # setup-in-test
+cmd;
++cmd
+EOI
+testscript:2:1: error: setup command in test
+EOE
+
+$* <<EOI 2>>EOE != 0 # tdown-in-test
+cmd;
+-cmd
+EOI
+testscript:2:1: error: teardown command in test
+EOE
+
+$* <<EOI 2>>EOE != 0 # setup-after-test
+cmd
++cmd
+EOI
+testscript:2:1: error: setup command after tests
+EOE
+
+$* <<EOI 2>>EOE != 0 # setup-after-tdownt
+-cmd
++cmd
+EOI
+testscript:2:1: error: setup command after teardown
+EOE