author | Tom Henderson <tomh@tomh.org> |
Mon, 18 Mar 2013 22:24:11 -0700 | |
changeset 9263 | d0ae7cd31c60 |
parent 7683 | f3a3a218e6ab |
child 9277 | 0f87d1cb030c |
permissions | -rw-r--r-- |
5270 | 1 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
2 |
||
7293
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
3 |
import sys |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
4 |
|
6034
de2824cc388d
add a place for perf tests
Craig Dowell <craigdo@ee.washington.edu>
parents:
5270
diff
changeset
|
5 |
def configure(conf): |
7293
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
6 |
# Add the test module to the list of enabled modules that should |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
7 |
# not be built if this is a static build on Darwin. They don't |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
8 |
# work there for the test module, and this is probably because the |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
9 |
# test module has no source files. |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
10 |
if conf.env['ENABLE_STATIC_NS3'] and sys.platform == 'darwin': |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
11 |
conf.env['MODULES_NOT_BUILT'].append('test') |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
12 |
|
5270 | 13 |
def build(bld): |
7293
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
14 |
# Don't do anything for this module if it should not be built. |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
15 |
if 'test' in bld.env['MODULES_NOT_BUILT']: |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
16 |
return |
0f574c532cee
Make test module not be built if not appropriate
Mitch Watrous <watrous@u.washington.edu>
parents:
7134
diff
changeset
|
17 |
|
7683
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
18 |
test = bld.create_ns3_module('test', ['internet', 'mobility', 'applications', 'csma', 'bridge', 'config-store', 'tools', 'point-to-point', 'csma-layout', 'flow-monitor', 'wifi']) |
7487
82cd20da9650
Upgrade to waf-1.6.7, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
7300
diff
changeset
|
19 |
headers = bld.new_task_gen(features=['ns3header']) |
7004
70288abe65d0
Move tests from test module to its test library
Mitch Watrous <watrous@u.washington.edu>
parents:
6941
diff
changeset
|
20 |
headers.module = 'test' |
70288abe65d0
Move tests from test module to its test library
Mitch Watrous <watrous@u.washington.edu>
parents:
6941
diff
changeset
|
21 |
|
70288abe65d0
Move tests from test module to its test library
Mitch Watrous <watrous@u.washington.edu>
parents:
6941
diff
changeset
|
22 |
test_test = bld.create_ns3_module_test_library('test') |
70288abe65d0
Move tests from test module to its test library
Mitch Watrous <watrous@u.washington.edu>
parents:
6941
diff
changeset
|
23 |
test_test.source = [ |
6624
a071889af159
Remove regression tests from waf
Mitch Watrous <watrous@u.washington.edu>
parents:
6613
diff
changeset
|
24 |
'csma-system-test-suite.cc', |
a071889af159
Remove regression tests from waf
Mitch Watrous <watrous@u.washington.edu>
parents:
6613
diff
changeset
|
25 |
'global-routing-test-suite.cc', |
a071889af159
Remove regression tests from waf
Mitch Watrous <watrous@u.washington.edu>
parents:
6613
diff
changeset
|
26 |
'static-routing-test-suite.cc', |
6613
ddc45ac0ff8e
add mobility model test suite with more waypoint mobility model tests
Tom Henderson <tomh@tomh.org>
parents:
6109
diff
changeset
|
27 |
'mobility-test-suite.cc', |
7683
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
28 |
'ns3wifi/wifi-interference-test-suite.cc', |
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
29 |
'ns3wifi/wifi-msdu-aggregator-test-suite.cc', |
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
30 |
'ns3tcp/ns3tcp-cwnd-test-suite.cc', |
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
31 |
'ns3tcp/ns3tcp-interop-test-suite.cc', |
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
32 |
'ns3tcp/ns3tcp-loss-test-suite.cc', |
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
33 |
'ns3tcp/ns3tcp-no-delay-test-suite.cc', |
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
34 |
'ns3tcp/ns3tcp-socket-test-suite.cc', |
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
35 |
'ns3tcp/ns3tcp-state-test-suite.cc', |
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
36 |
'ns3tcp/nsctcp-loss-test-suite.cc', |
f3a3a218e6ab
bug 1338: ns3tcp and ns3wifi are no longer built
Tom Henderson <tomh@tomh.org>
parents:
7487
diff
changeset
|
37 |
'ns3tcp/ns3tcp-socket-writer.cc', |
5270 | 38 |
] |
39 |