OpenCores
URL https://opencores.org/ocsvn/dmt_tx/dmt_tx/trunk

Subversion Repositories dmt_tx

[/] [dmt_tx/] [trunk/] [myhdl/] [adsl_main.py] - Blame information for rev 30

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 dannori
#!/usr/bin/env python
2
 
3
########################################################################
4
#
5
# Main program that runs all the test
6
#
7
#
8
#
9
#
10
########################################################################
11
 
12
import unittest
13
 
14
 
15 30 dannori
import test.test_flipSign, \
16
        test.test_cmath,    \
17
        test.test_const_encoder,    \
18
        test.test_fifo_sync, \
19
        test.test_bit_order
20 27 dannori
 
21
mL = [test.test_flipSign]
22
mL.append(test.test_cmath)
23 28 dannori
mL.append(test.test_const_encoder)
24 30 dannori
mL.append(test.test_fifo_sync)
25
mL.append(test.test_bit_order)
26 27 dannori
 
27
tl = unittest.defaultTestLoader
28
def suite():
29
    alltests = unittest.TestSuite()
30
    for m in mL:
31
        alltests.addTest(tl.loadTestsFromModule(m))
32
    return alltests
33
 
34
def main():
35
    unittest.main(defaultTest='suite',
36
                  testRunner=unittest.TextTestRunner(verbosity=2))
37
 
38
 
39
 
40
 
41
 
42
########################################################################
43
# main
44
#
45
if __name__ == '__main__':
46
    main()

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.