OLD | NEW |
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- | 1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- |
2 | 2 |
3 import sys | 3 import sys |
4 | 4 |
5 def configure(conf): | 5 def configure(conf): |
6 # Add the test module to the list of enabled modules that should | 6 # Add the test module to the list of enabled modules that should |
7 # not be built if this is a static build on Darwin. They don't | 7 # not be built if this is a static build on Darwin. They don't |
8 # work there for the test module, and this is probably because the | 8 # work there for the test module, and this is probably because the |
9 # test module has no source files. | 9 # test module has no source files. |
10 if conf.env['ENABLE_STATIC_NS3'] and sys.platform == 'darwin': | 10 if conf.env['ENABLE_STATIC_NS3'] and sys.platform == 'darwin': |
11 conf.env['MODULES_NOT_BUILT'].append('test') | 11 conf.env['MODULES_NOT_BUILT'].append('test') |
12 | 12 |
13 def build(bld): | 13 def build(bld): |
14 # Don't do anything for this module if it should not be built. | 14 # Don't do anything for this module if it should not be built. |
15 if 'test' in bld.env['MODULES_NOT_BUILT']: | 15 if 'test' in bld.env['MODULES_NOT_BUILT']: |
16 return | 16 return |
17 | 17 |
18 test = bld.create_ns3_module('test', ['internet', 'mobility', 'applications'
, 'csma', 'bridge', 'config-store', 'point-to-point', 'csma-layout', 'flow-monit
or', 'wifi']) | 18 test = bld.create_ns3_module('test', ['internet', 'mobility', 'applications'
, 'csma', 'bridge', 'config-store', 'point-to-point', 'csma-layout', 'flow-monit
or', 'wifi']) |
19 headers = bld(features='ns3header') | 19 headers = bld(features='ns3header') |
20 headers.module = 'test' | 20 headers.module = 'test' |
21 | 21 |
22 test_test = bld.create_ns3_module_test_library('test') | 22 test_test = bld.create_ns3_module_test_library('test') |
23 test_test.source = [ | 23 test_test.source = [ |
24 'csma-system-test-suite.cc', | 24 'csma-system-test-suite.cc', |
25 'global-routing-test-suite.cc', | |
26 'static-routing-test-suite.cc', | |
27 'mobility-test-suite.cc', | |
28 'ns3wifi/wifi-interference-test-suite.cc', | 25 'ns3wifi/wifi-interference-test-suite.cc', |
29 'ns3wifi/wifi-msdu-aggregator-test-suite.cc', | 26 'ns3wifi/wifi-msdu-aggregator-test-suite.cc', |
30 'ns3tcp/ns3tcp-cwnd-test-suite.cc', | 27 'ns3tcp/ns3tcp-cwnd-test-suite.cc', |
31 'ns3tcp/ns3tcp-interop-test-suite.cc', | 28 'ns3tcp/ns3tcp-interop-test-suite.cc', |
32 'ns3tcp/ns3tcp-loss-test-suite.cc', | 29 'ns3tcp/ns3tcp-loss-test-suite.cc', |
33 'ns3tcp/ns3tcp-no-delay-test-suite.cc', | 30 'ns3tcp/ns3tcp-no-delay-test-suite.cc', |
34 'ns3tcp/ns3tcp-socket-test-suite.cc', | 31 'ns3tcp/ns3tcp-socket-test-suite.cc', |
35 'ns3tcp/ns3tcp-state-test-suite.cc', | 32 'ns3tcp/ns3tcp-state-test-suite.cc', |
36 'ns3tcp/nsctcp-loss-test-suite.cc', | 33 'ns3tcp/nsctcp-loss-test-suite.cc', |
37 'ns3tcp/ns3tcp-socket-writer.cc', | 34 'ns3tcp/ns3tcp-socket-writer.cc', |
38 ] | 35 ] |
39 | 36 |
OLD | NEW |