diff options
-rwxr-xr-x | wscript | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -647,6 +647,7 @@ class TestProgramItem(Item): return BuildItemContext(bic.includes, bic.use, bic.ldflags, []) def do_build(self, bld, bic): + target = self.get(bld, "target") bld( cflags=self.data["cflags"], cppflags=bld.env[self.cppflags] + self.data["cppflags"], @@ -658,10 +659,13 @@ class TestProgramItem(Item): source=self.data["source"], start_files=True, stlib=self.data["stlib"], - target=self.get(bld, "target"), + target=target, use=self.data["use-before"] + bic.use + self.data["use-after"], ) + if not target.endswith(".norun.exe"): + bld.install_files(bld.env.BSP_PREFIX + "/tests", target) + class AdaTestProgramItem(TestProgramItem): def __init__(self, uid, data): |