From 94e717de9323864e8128b3de7ff213c4f609707f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 25 Oct 2016 17:08:09 +0200 Subject: Add few setup/teardown tests --- unit-tests/test/script/parser/setup-teardown.test | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'unit-tests/test') 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 + +$* <>EOE != 0 # setup-in-test +cmd; ++cmd +EOI +testscript:2:1: error: setup command in test +EOE + +$* <>EOE != 0 # tdown-in-test +cmd; +-cmd +EOI +testscript:2:1: error: teardown command in test +EOE + +$* <>EOE != 0 # setup-after-test +cmd ++cmd +EOI +testscript:2:1: error: setup command after tests +EOE + +$* <>EOE != 0 # setup-after-tdownt +-cmd ++cmd +EOI +testscript:2:1: error: setup command after teardown +EOE -- cgit v1.1