aboutsummaryrefslogtreecommitdiff
path: root/tests/project.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-11 21:48:28 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-14 18:08:06 +0300
commitcbd7cabcc3e6b24e80521bfec230e905f420ff4f (patch)
treef30aa2cd077fcb6a1939a7fdb79a80346d44d350 /tests/project.test
parent61cdde35094fc655eac2e6968b465f217e91d0ac (diff)
Add some tests
Diffstat (limited to 'tests/project.test')
-rw-r--r--tests/project.test26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/project.test b/tests/project.test
new file mode 100644
index 0000000..06d6ccc
--- /dev/null
+++ b/tests/project.test
@@ -0,0 +1,26 @@
+# file : tests/project.test
+# copyright : Copyright (c) 2014-2017 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