wscript: build a subset of tools
refs: #2670
Change-Id: I85951dd7510e36b48a630eb96e28f3351a3dac4f
diff --git a/tests/wscript b/tests/wscript
index 6066890..c67d252 100644
--- a/tests/wscript
+++ b/tests/wscript
@@ -5,11 +5,9 @@
if not bld.env['WITH_TESTS']:
return
- tools = bld.path.ant_glob('*', dir=True, src=False)
-
bld(target='../unit-tests',
features='cxx cxxprogram',
- source=bld.path.ant_glob('**/*.cpp'),
- use=['core-objects'] + ['%s-objects' % tool for tool in tools],
+ source=bld.path.ant_glob(['*.cpp'] + ['%s/**/*.cpp' % tool for tool in bld.env['BUILD_TOOLS']]),
+ use=['core-objects'] + ['%s-objects' % tool for tool in bld.env['BUILD_TOOLS']],
headers='../common.hpp boost-test.hpp',
)