From 79a83d6dd0f312a5e390f5627f68cc96c4427d33 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Oct 2016 18:00:05 +0200 Subject: Add support for setup/teardown commands --- tests/test/script/integration/testscript | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/test/script/integration/testscript (limited to 'tests/test/script/integration/testscript') diff --git a/tests/test/script/integration/testscript b/tests/test/script/integration/testscript new file mode 100644 index 0000000..4c8c380 --- /dev/null +++ b/tests/test/script/integration/testscript @@ -0,0 +1,27 @@ +# file : tests/test/script/integration/testscript +# copyright : Copyright (c) 2014-2016 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +test.options += --buildfile - +test.arguments = test + ++mkdir build +#+cat <>>build/boostrap.build +#project = test +#amalgamation = +# +#using test +#EOI ++cp $src_base/bootstrap.build build/ + +touch testscript foo.test; +$* <>EOE != 0; +./: test{testscript foo} +EOI +error: both 'testscript' and other names specified for dir{./} +info: while testing dir{./} +EOE +rm -f testscript foo.test + +-rm -f build/bootstrap.build +-rmdir build/ -- cgit v1.1