From a8d600705909e58c65a10fe4b0825f01c421a7be Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 21 Mar 2011 18:16:41 +0000 Subject: [PATCH] Make ./waf --apiscan=all skip the test modules --- bindings/python/wscript | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bindings/python/wscript b/bindings/python/wscript index 4a3046aa0..a4d220044 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -660,8 +660,16 @@ def build(bld): scan_targets.append(('gcc_ILP32', '')) else: raise Utils.WafError("Cannot scan python bindings for unsupported data model") + + test_module_path = bld.path.find_dir("../../src/test") if Options.options.apiscan == 'all': - scan_modules = [mod.split('ns3-')[1] for mod in env.NS3_ENABLED_MODULES] + scan_modules = [] + for mod in bld.all_task_gen: + if not mod.name.startswith('ns3-'): + continue + if mod.path.is_child_of(test_module_path): + continue + scan_modules.append(mod.name.split('ns3-')[1]) else: scan_modules = Options.options.apiscan.split(',') print "Modules to scan: ", scan_modules