~comnets/openwns-unittest/unittest--main--1.0

« back to all changes in this revision

Viewing changes to unitTests/config.py

  • Committer: Maciej Muehleisen
  • Date: 2008-11-04 16:54:59 UTC
  • mfrom: (4.1.3 unit)
  • Revision ID: mue@comnets.rwth-aachen.de-20081104165459-dzm0y69h075ascj0
Added list of imported modules to be unit tested

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# import the openWNS module. Contains all sub-classes needed for
2
2
# configuration of openWNS
 
3
moduleList = ["constanze", "simpleTL"]
 
4
 
3
5
import openwns
4
 
# this is a project which shows how to write a loadable module to extend openWNS
5
 
import projname
6
 
# the load generator
7
 
import constanze
8
 
# simplified transport layer
9
 
import simpleTL
 
6
 
 
7
for module in moduleList:
 
8
    try:
 
9
        __import__(module)
 
10
    except ImportError:
 
11
        print "C++ Unit Test Warning: Module " + module + " is not available\n"
 
12
        
10
13
 
11
14
simulator = openwns.Simulator()
12
15
 
13
16
simulator.environment.masterLogger.enabled = False
14
17
 
 
18
simulator.outputStrategy = openwns.simulator.OutputStrategy.DELETE
 
19
simulator.masterLogger.enabled = False
 
20
 
15
21
openwns.setSimulator(simulator)