From 0c1ea060f7417ffc52cababd74278ea9d6047114 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 2 Aug 2021 11:06:35 +0200 Subject: Add version_string, list of modules to b_info() result Also only attempt to parse the string version to standard version if the version modules is loaded. --- tests/b-info/driver.cxx | 12 ++++++++++++ tests/b-info/testscript | 2 ++ 2 files changed, 14 insertions(+) (limited to 'tests/b-info') diff --git a/tests/b-info/driver.cxx b/tests/b-info/driver.cxx index 3ecfbc0..c5a2013 100644 --- a/tests/b-info/driver.cxx +++ b/tests/b-info/driver.cxx @@ -110,6 +110,18 @@ try cout << *i; } + cout << endl + << "modules: "; + + for (auto b (pi.modules.begin ()), i (b); + i != pi.modules.end (); + ++i) + { + if (i != b) + cout << ' '; + + cout << *i; + } cout << endl; return 0; diff --git a/tests/b-info/testscript b/tests/b-info/testscript index c5c3910..2ec5f4e 100644 --- a/tests/b-info/testscript +++ b/tests/b-info/testscript @@ -61,6 +61,7 @@ test.options += -b $recall($build.path) subprojects: @subprj/ operations: update clean meta-operations: perform configure disfigure dist info + modules: version config dist EOO $* prj/subprj >>/~"%EOO%" @@ -74,6 +75,7 @@ test.options += -b $recall($build.path) subprojects:$sp operations: update clean meta-operations: perform configure disfigure dist info + modules: config dist EOO } -- cgit v1.1