summaryrefslogtreecommitdiff
path: root/run_tests
blob: 12c69a7a894e25943263ee5ae9f342ef547869f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python

import unittest

from cxmanage_test import tftp_test, image_test, target_test, controller_test
test_modules = [tftp_test, image_test, target_test, controller_test]

def main():
    """ Load and run tests """
    loader = unittest.TestLoader()
    suite = unittest.TestSuite()
    for module in test_modules:
        suite.addTest(loader.loadTestsFromModule(module))
    unittest.TextTestRunner(verbosity=2).run(suite)

if __name__ == "__main__":
    main()