From d1d9fbc899be37bba7b05f31ac5c7a4d15d64811 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 4 Sep 2018 14:32:11 +0300 Subject: Rename .test/test{} to .testscript/testscript{} --- tests/project.testscript | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/project.testscript (limited to 'tests/project.testscript') diff --git a/tests/project.testscript b/tests/project.testscript new file mode 100644 index 0000000..69288aa --- /dev/null +++ b/tests/project.testscript @@ -0,0 +1,26 @@ +# file : tests/project.testscript +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +# Create and initialize a sample build2 C++ executable project that will be +# copied by subsequent tests and scopes setup commands. The common approach +# will be that group scopes copy and modify the parent scope project as +# required by the nested tests and scopes. Tests will also clone the parent +# scope project to optionally modify it, use and cleanup at the end. Note that +# project can not be shared between multiple bdep processes. Also we need to +# make sure that projects are not cloned while being used by bdep. +# ++$new prj 2>- &prj/*** # By default: -t exe -l c++. + +# The most commonly used project cloning command that copies it from the +# parent scope working directory. +# +clone_prj = cp -p -r ../prj ./ + +# Clones the original project from the root scope working directory. +# +clone_root_prj = cp -p -r $~/prj ./ + +# Setup a test command to use a cloned project directory by default. +# +test.arguments += -d prj -- cgit v1.1