aboutsummaryrefslogtreecommitdiff
path: root/bdep
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-04 16:45:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-04 16:45:07 +0200
commit322545a2d0ee46025bccdddfb96406332f97fe1f (patch)
tree04d9442fe130ad13b9d4fd9f7c55215fe56f3f53 /bdep
parent857162c1bb0263d621f736b66171d182d9c392ce (diff)
Set test.target for cross-testing in root.build generated by new command
Diffstat (limited to 'bdep')
-rw-r--r--bdep/new.cxx15
1 files 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