aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/setup-teardown.test
blob: 57528ad3056ee3e8421e4d64deb9c5445f80a596 (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: ';' after setup command
EOE

$* <"-cmd;" 2>>EOE != 0                 # semi-after-tdown
testscript:1:5: error: ';' after teardown command
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