2009-09-27 23:51:23 -07:00
|
|
|
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
|
|
|
|
|
2011-05-30 15:30:49 -07:00
|
|
|
import sys
|
|
|
|
|
|
2010-01-29 15:01:07 -08:00
|
|
|
def configure(conf):
|
2011-05-30 15:30:49 -07:00
|
|
|
# Add the test module to the list of enabled modules that should
|
|
|
|
|
# not be built if this is a static build on Darwin. They don't
|
|
|
|
|
# work there for the test module, and this is probably because the
|
|
|
|
|
# test module has no source files.
|
|
|
|
|
if conf.env['ENABLE_STATIC_NS3'] and sys.platform == 'darwin':
|
|
|
|
|
conf.env['MODULES_NOT_BUILT'].append('test')
|
|
|
|
|
|
2009-09-27 23:51:23 -07:00
|
|
|
def build(bld):
|
2011-05-30 15:30:49 -07:00
|
|
|
# Don't do anything for this module if it should not be built.
|
|
|
|
|
if 'test' in bld.env['MODULES_NOT_BUILT']:
|
|
|
|
|
return
|
|
|
|
|
|
2015-08-18 16:46:10 -07:00
|
|
|
test = bld.create_ns3_module('test',
|
|
|
|
|
['applications', 'bridge', 'config-store',
|
|
|
|
|
'csma', 'csma-layout', 'dsr',
|
|
|
|
|
'flow-monitor', 'internet', 'lr-wpan',
|
|
|
|
|
'lte', 'mesh', 'mobility', 'olsr',
|
|
|
|
|
'point-to-point', 'sixlowpan', 'stats',
|
2016-03-09 09:23:56 -08:00
|
|
|
'uan', 'wifi', 'internet-apps',
|
2016-03-11 19:17:53 -08:00
|
|
|
'point-to-point-layout', 'traffic-control'])
|
2015-08-18 16:46:10 -07:00
|
|
|
|
2013-04-01 22:33:46 +02:00
|
|
|
headers = bld(features='ns3header')
|
2011-04-06 16:10:47 -07:00
|
|
|
headers.module = 'test'
|
|
|
|
|
|
|
|
|
|
test_test = bld.create_ns3_module_test_library('test')
|
|
|
|
|
test_test.source = [
|
2010-10-15 16:31:32 -07:00
|
|
|
'csma-system-test-suite.cc',
|
2016-08-01 10:34:34 +02:00
|
|
|
'ns3tc/adaptive-red-queue-disc-test-suite.cc',
|
|
|
|
|
'ns3tc/pfifo-fast-queue-disc-test-suite.cc',
|
2012-01-13 15:39:17 -08:00
|
|
|
'ns3tcp/ns3tcp-cwnd-test-suite.cc',
|
|
|
|
|
'ns3tcp/ns3tcp-interop-test-suite.cc',
|
|
|
|
|
'ns3tcp/ns3tcp-loss-test-suite.cc',
|
|
|
|
|
'ns3tcp/ns3tcp-no-delay-test-suite.cc',
|
|
|
|
|
'ns3tcp/ns3tcp-socket-test-suite.cc',
|
|
|
|
|
'ns3tcp/ns3tcp-state-test-suite.cc',
|
|
|
|
|
'ns3tcp/nsctcp-loss-test-suite.cc',
|
|
|
|
|
'ns3tcp/ns3tcp-socket-writer.cc',
|
2015-08-18 15:15:04 -07:00
|
|
|
'ns3wifi/wifi-interference-test-suite.cc',
|
|
|
|
|
'ns3wifi/wifi-msdu-aggregator-test-suite.cc',
|
2016-07-14 15:59:55 +02:00
|
|
|
'ns3wifi/wifi-ac-mapping-test-suite.cc',
|
2015-08-18 16:59:27 -07:00
|
|
|
'traced/traced-callback-typedef-test-suite.cc',
|
|
|
|
|
'traced/traced-value-callback-typedef-test-suite.cc',
|
2009-09-27 23:51:23 -07:00
|
|
|
]
|
|
|
|
|
|