aboutsummaryrefslogtreecommitdiff
path: root/tests/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-07-08 14:55:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-07-24 13:53:25 +0200
commit83bb02cada0b894d9134cc5489999e0f0fe8bd7c (patch)
tree1dedff27ce2b7d54bd6b0875c9125f4dafde2e80 /tests/libbuild2
parent1ba934bb973c234b68751ee5866365c14da4e795 (diff)
Move in build system module to separate library
Diffstat (limited to 'tests/libbuild2')
-rw-r--r--tests/libbuild2/buildfile3
-rw-r--r--tests/libbuild2/driver.cxx5
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/libbuild2/buildfile b/tests/libbuild2/buildfile
index 4d3a42f..51b2f5b 100644
--- a/tests/libbuild2/buildfile
+++ b/tests/libbuild2/buildfile
@@ -2,7 +2,8 @@
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-import libs = build2%lib{build2}
+import libs = build2%lib{build2}
+import libs += build2%lib{build2-in}
exe{driver}: {hxx cxx}{*} $libs testscript
diff --git a/tests/libbuild2/driver.cxx b/tests/libbuild2/driver.cxx
index 3df2fbe..d9c086a 100644
--- a/tests/libbuild2/driver.cxx
+++ b/tests/libbuild2/driver.cxx
@@ -8,6 +8,8 @@
#include <libbuild2/context.hxx> // sched, reset()
#include <libbuild2/scheduler.hxx>
+#include <libbuild2/in/init.hxx>
+
using namespace build2;
int
@@ -17,6 +19,9 @@ main (int, char* argv[])
//
init_diag (1);
init (argv[0]);
+
+ in::build2_in_load ();
+
sched.startup (1); // Serial execution.
reset (strings ()); // No command line variables.