aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-07-13 22:19:18 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-07-14 18:04:46 +0300
commit8e8d599b129d35f638f2c1957c869b054a38b021 (patch)
tree3678e5e4e1d63cde262327f637a1a5d49f069a29 /build
parent360ee295a8c5ac1f693e38160302c1ea93bb9964 (diff)
Make tests to be a sub-project
Diffstat (limited to 'build')
-rw-r--r--build/export.build15
-rw-r--r--build/root.build3
2 files changed, 16 insertions, 2 deletions
diff --git a/build/export.build b/build/export.build
new file mode 100644
index 0000000..8cd1646
--- /dev/null
+++ b/build/export.build
@@ -0,0 +1,15 @@
+# file : build/export.build
+# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+# license : TBC; see accompanying LICENSE file
+
+$out_root/:
+{
+ include bbot/
+}
+
+if ($import.target == exe{bbot-agent})
+ export $out_root/bbot/exe{bbot-agent}
+elif ($import.target == exe{bbot-worker})
+ export $out_root/bbot/exe{bbot-worker}
+else
+ assert false unknown target $import.target
diff --git a/build/root.build b/build/root.build
index 4661de1..f63ff10 100644
--- a/build/root.build
+++ b/build/root.build
@@ -21,9 +21,8 @@ cxx.poptions =+ "-I$out_root" "-I$src_root"
#
using? cli
-# All exe{} in tests/ and unit-tests/ are, well, tests.
+# All exe{} in unit-tests/ are, well, tests.
#
-tests/exe{*}: test = true
unit-tests/exe{*}: test = true
# Specify the test target for cross-testing.