2011-09-08 11:42:45 +02:00
|
|
|
import os.path
|
2010-08-31 13:47:27 +02:00
|
|
|
import sys
|
2010-08-24 18:59:31 +02:00
|
|
|
import unittest
|
2011-09-08 11:42:45 +02:00
|
|
|
|
|
|
|
try:
|
|
|
|
import xmlrunner # JUnit like XML reporting
|
|
|
|
have_xmlrunner = True
|
|
|
|
except ImportError:
|
|
|
|
have_xmlrunner = False
|
|
|
|
|
2010-08-24 18:59:31 +02:00
|
|
|
import test_update
|
|
|
|
import test_addfiles
|
|
|
|
import test_deletefiles
|
2010-08-25 13:50:49 +02:00
|
|
|
import test_revertfiles
|
2010-08-27 16:25:50 +02:00
|
|
|
import test_difffiles
|
2010-08-30 13:46:49 +02:00
|
|
|
import test_init_package
|
2010-10-09 16:25:44 +02:00
|
|
|
import test_init_project
|
2010-08-30 18:29:24 +02:00
|
|
|
import test_commit
|
2010-09-08 18:57:21 +02:00
|
|
|
import test_repairwc
|
2010-12-22 23:12:24 +01:00
|
|
|
import test_package_status
|
|
|
|
import test_project_status
|
2010-12-30 02:27:15 +01:00
|
|
|
import test_request
|
2011-02-22 16:27:53 +01:00
|
|
|
import test_setlinkrev
|
2013-01-18 22:58:53 +01:00
|
|
|
import test_prdiff
|
2014-01-08 15:43:20 +01:00
|
|
|
import test_conf
|
2018-11-05 22:51:23 +01:00
|
|
|
import test_results
|
2010-08-24 18:59:31 +02:00
|
|
|
|
|
|
|
suite = unittest.TestSuite()
|
|
|
|
suite.addTests(test_addfiles.suite())
|
|
|
|
suite.addTests(test_deletefiles.suite())
|
2010-08-25 13:50:49 +02:00
|
|
|
suite.addTests(test_revertfiles.suite())
|
2010-08-24 18:59:31 +02:00
|
|
|
suite.addTests(test_update.suite())
|
2010-08-27 16:25:50 +02:00
|
|
|
suite.addTests(test_difffiles.suite())
|
2010-08-30 13:46:49 +02:00
|
|
|
suite.addTests(test_init_package.suite())
|
2010-10-09 16:25:44 +02:00
|
|
|
suite.addTests(test_init_project.suite())
|
2010-08-30 18:29:24 +02:00
|
|
|
suite.addTests(test_commit.suite())
|
2010-09-08 18:57:21 +02:00
|
|
|
suite.addTests(test_repairwc.suite())
|
2010-12-22 23:12:24 +01:00
|
|
|
suite.addTests(test_package_status.suite())
|
|
|
|
suite.addTests(test_project_status.suite())
|
2010-12-30 02:27:15 +01:00
|
|
|
suite.addTests(test_request.suite())
|
2011-02-22 16:27:53 +01:00
|
|
|
suite.addTests(test_setlinkrev.suite())
|
2013-01-18 22:58:53 +01:00
|
|
|
suite.addTests(test_prdiff.suite())
|
2014-01-08 15:43:20 +01:00
|
|
|
suite.addTests(test_conf.suite())
|
2018-11-05 22:51:23 +01:00
|
|
|
suite.addTests(test_results.suite())
|
2011-09-08 11:42:45 +02:00
|
|
|
|
|
|
|
if have_xmlrunner:
|
|
|
|
result = xmlrunner.XMLTestRunner(output=os.path.join(os.getcwd(), 'junit-xml-results')).run(suite)
|
|
|
|
else:
|
|
|
|
result = unittest.TextTestRunner(verbosity=1).run(suite)
|
2010-08-31 13:47:27 +02:00
|
|
|
sys.exit(not result.wasSuccessful())
|