From 43a1c24b089ae92bcf9a80584ebdf4c4011b9664 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 19 May 2018 09:02:17 +0200 Subject: Support for deriving target type from file name, handle testscript, buildfile In particular, instead of: exe{test}: test{testscript} We should now write: exe{test}: testscript --- build2/test/init.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build2/test') diff --git a/build2/test/init.cxx b/build2/test/init.cxx index 6d28e9e..036f41c 100644 --- a/build2/test/init.cxx +++ b/build2/test/init.cxx @@ -202,7 +202,8 @@ namespace build2 { auto& t (rs.target_types); - t.insert (); + auto& tt (t.insert ()); + t.insert_file ("testscript", tt); } // Register our test running rule. -- cgit v1.1