run.py 552 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/python -O
  2. import importlib
  3. import sys
  4. import unittest
  5. test_order = [
  6. 'qubes.tests.events',
  7. 'qubes.tests.vm.init',
  8. 'qubes.tests.vm.qubesvm',
  9. 'qubes.tests.init'
  10. ]
  11. sys.path.insert(0, '../../')
  12. def main():
  13. suite = unittest.TestSuite()
  14. loader = unittest.TestLoader()
  15. for modname in test_order:
  16. module = importlib.import_module(modname)
  17. suite.addTests(loader.loadTestsFromModule(module))
  18. unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(suite)
  19. if __name__ == '__main__':
  20. main()