aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/setup-teardown.test
blob: 5d30ed4f1689c99409902fd16c6602a5509c746a (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
36
37
38
39
40
41
42
43
$* <"+cmd;" 2>>EOE != 0                 # semi-after-setup
testscript:1:5: error: ';' after setup command
EOE

$* <"+cmd:" 2>>EOE != 0                 # colon-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

$* <"-cmd:" 2>>EOE != 0                 # colon-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