From 322545a2d0ee46025bccdddfb96406332f97fe1f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 May 2018 16:45:07 +0200 Subject: Set test.target for cross-testing in root.build generated by new command --- bdep/new.cxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/bdep/new.cxx b/bdep/new.cxx index d0764d9..ce6d1ca 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -205,6 +205,11 @@ namespace bdep break; } } + if (tests) + os << endl + << "# The test target for cross-testing (running tests under Wine, etc)." << endl + << "#" << endl + << "test.target = $cxx.target" << endl; os.close (); // build/.gitignore @@ -729,10 +734,14 @@ namespace bdep break; } } - os << endl + os << endl << "# Every exe{} in this subproject is by default a test."<< endl - << "#" << endl - << "exe{*}: test = true" << endl; + << "#" << endl + << "exe{*}: test = true" << endl + << endl + << "# The test target for cross-testing (running tests under Wine, etc)." << endl + << "#" << endl + << "test.target = $cxx.target" << endl; os.close (); // tests/build/.gitignore -- cgit v1.1