aboutsummaryrefslogtreecommitdiff
path: root/build2/test
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-06-26 17:05:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-06-26 17:05:07 +0200
commit5f924ea1926fe17acf699a43713b7f5881e9d30d (patch)
treeeccff3428e8a1b689e79b07088fc00b520a9485b /build2/test
parent61617d7bb990f04970c6357d8e9a9095174d8fc4 (diff)
Add support for passing configuration hints via module init()
Diffstat (limited to 'build2/test')
-rw-r--r--build2/test/module9
-rw-r--r--build2/test/module.cxx8
2 files changed, 13 insertions, 4 deletions
diff --git a/build2/test/module b/build2/test/module
index 756b4f6..b9c3ea5 100644
--- a/build2/test/module
+++ b/build2/test/module
@@ -18,8 +18,13 @@ namespace build2
test_boot (scope&, const location&, unique_ptr<module_base>&);
extern "C" bool
- test_init (
- scope&, scope&, const location&, unique_ptr<module_base>&, bool, bool);
+ test_init (scope&,
+ scope&,
+ const location&,
+ unique_ptr<module_base>&,
+ bool,
+ bool,
+ const variable_map&);
}
}
diff --git a/build2/test/module.cxx b/build2/test/module.cxx
index e5b044a..c20e274 100644
--- a/build2/test/module.cxx
+++ b/build2/test/module.cxx
@@ -55,7 +55,8 @@ namespace build2
const location& l,
unique_ptr<module_base>&,
bool first,
- bool)
+ bool,
+ const variable_map& config_hints)
{
tracer trace ("test::init");
@@ -68,7 +69,10 @@ namespace build2
const dir_path& out_root (root.out_path ());
l5 ([&]{trace << "for " << out_root;});
- //@@ Need ability to specify extra diff options (--strip-trailing-cr).
+ assert (config_hints.empty ()); // We don't known any hints.
+
+ //@@ TODO: Need ability to specify extra diff options (e.g.,
+ // --strip-trailing-cr, now hardcoded).
// Register rules.
//