summaryrefslogtreecommitdiff
path: root/cesar/maximus/python/test/test_maximus.py
blob: 9fff653f198366d5dee26cf3ddc362ad23e44b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! usr/bin/env python

import startup


print
print "MAXIMUS TEST"
import test_channel
import test_cli
import test_ethernet
import test_fsm
import test_interface
import test_macframe
import test_mme
import test_result
import test_simu
import test_station
import test_utils

print
print "PY DOC"
import pydoc, maximus
pydoc.getdoc(maximus)


print
print "DOC TEST"
import doctest
doctest.testmod(maximus)
doctest.testfile("test.txt")


print
print "UNIT TEST"
import unittest
allTests = unittest.TestSuite([test_channel.suite, test_cli.suite, test_ethernet.suite, test_fsm.suite, test_interface.suite, test_macframe.suite, test_mme.suite, test_result.suite, test_simu.suite, test_station.suite, test_utils.suite])
testResult = unittest.TextTestRunner(verbosity=2).run(allTests)


print
print "TEST SUPPORT"
from test import test_support
def test_main():
	test_support.run_suite(allTests)