forked from benedictpaten/cPecan
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathallTests.py
More file actions
26 lines (21 loc) · 805 Bytes
/
allTests.py
File metadata and controls
26 lines (21 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python3
#Copyright (C) 2011 by Benedict Paten (benedictpaten@gmail.com)
#
#Released under the MIT license, see LICENSE.txt
import unittest
from cPecan.cPecanLibTest import TestCase as cPecanLibTest
from cPecan.cPecanRealignTest import TestCase as realignTest
#FIXME: disabled from cPecan.cPecanEmTest import TestCase as eMTest
def allSuites():
allTests = unittest.TestSuite((unittest.makeSuite(cPecanLibTest, 'test'),
unittest.makeSuite(realignTest, 'test')))
# FIXME: disabled: unittest.makeSuite(eMTest, 'test'))
return allTests
def main():
suite = allSuites()
runner = unittest.TextTestRunner()
i = runner.run(suite)
return len(i.failures) + len(i.errors)
if __name__ == '__main__':
import sys
sys.exit(main())