diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-25 17:08:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:35 +0200 |
commit | 94e717de9323864e8128b3de7ff213c4f609707f (patch) | |
tree | c257324ee88b81c0289eeed029f580fb499ee605 /unit-tests/test/script/parser/setup-teardown.test | |
parent | bdc679a76d714c4475e9d67e19910008e6f1aca7 (diff) |
Add few setup/teardown tests
Diffstat (limited to 'unit-tests/test/script/parser/setup-teardown.test')
-rw-r--r-- | unit-tests/test/script/parser/setup-teardown.test | 28 |
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 |