src/test/wscript
author Nicola Baldo <nbaldo@cttc.es>
Wed, 23 May 2012 12:03:11 +0200
changeset 8797 cf6b2a864fb6
parent 7683 f3a3a218e6ab
child 9263 d0ae7cd31c60
permissions -rw-r--r--
merge

## -*- 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', ['internet', 'mobility', 'applications', 'csma', 'bridge', 'config-store', 'tools', 'point-to-point', 'csma-layout', 'flow-monitor', 'wifi'])
    headers = bld.new_task_gen(features=['ns3header'])
    headers.module = 'test'

    test_test = bld.create_ns3_module_test_library('test')
    test_test.source = [
        'csma-system-test-suite.cc',
        'global-routing-test-suite.cc',
        'static-routing-test-suite.cc',
        'error-model-test-suite.cc',
        'mobility-test-suite.cc',
        'ns3wifi/wifi-interference-test-suite.cc',
        'ns3wifi/wifi-msdu-aggregator-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',
        ]