57 lines
2.3 KiB
Python
57 lines
2.3 KiB
Python
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
|
|
|
import sys
|
|
|
|
def configure(conf):
|
|
# 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')
|
|
|
|
def build(bld):
|
|
# Don't do anything for this module if it should not be built.
|
|
if 'test' in bld.env['MODULES_NOT_BUILT']:
|
|
return
|
|
|
|
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',
|
|
'uan', 'wifi', 'internet-apps',
|
|
'point-to-point-layout', 'traffic-control'])
|
|
|
|
headers = bld(features='ns3header')
|
|
headers.module = 'test'
|
|
|
|
test_test = bld.create_ns3_module_test_library('test')
|
|
test_test.source = [
|
|
'csma-system-test-suite.cc',
|
|
'ns3tc/fq-codel-queue-disc-test-suite.cc',
|
|
'ns3tc/pfifo-fast-queue-disc-test-suite.cc',
|
|
'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',
|
|
'ns3wifi/wifi-msdu-aggregator-test-suite.cc',
|
|
'ns3wifi/wifi-ac-mapping-test-suite.cc',
|
|
'ns3wifi/wifi-issue-211-test-suite.cc',
|
|
'traced/traced-callback-typedef-test-suite.cc',
|
|
'traced/traced-value-callback-typedef-test-suite.cc',
|
|
]
|
|
|
|
# Tests encapsulating example programs should be listed here
|
|
if (bld.env['ENABLE_EXAMPLES']):
|
|
test_test.source.extend([
|
|
# 'test/test-examples-test-suite.cc',
|
|
])
|
|
|
|
|