aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/setup-teardown.test
blob: 00ff2b56e2feac1f8a7384ffa98e94dcdb686b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$* <"+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

$* <<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