diff options
Diffstat (limited to 'tests/unittest/suite.py')
-rw-r--r-- | tests/unittest/suite.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/unittest/suite.py b/tests/unittest/suite.py new file mode 100644 index 0000000..d738d00 --- /dev/null +++ b/tests/unittest/suite.py @@ -0,0 +1,16 @@ +import os +import sys +import unittest +import test_configmgr +import test_pluginmgr +import test_baseimager + +if os.getuid() != 0: + raise SystemExit("Root permission is needed") + +suite = unittest.TestSuite() +suite.addTests(test_pluginmgr.suite()) +suite.addTests(test_configmgr.suite()) +suite.addTests(test_baseimager.suite()) +result = unittest.TextTestRunner(verbosity=2).run(suite) +sys.exit(not result.wasSuccessful()) |