aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-08-02 11:06:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-08-02 11:06:35 +0200
commit0c1ea060f7417ffc52cababd74278ea9d6047114 (patch)
tree4759bd1823c549381dd53efc5b5738ab2fd1ce42 /tests
parent8dd3964adbaccb1286d67d1b3ba63e47f545e65f (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/b-info/driver.cxx12
-rw-r--r--tests/b-info/testscript2
2 files changed, 14 insertions, 0 deletions
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
}