42 |
import getopt |
import getopt |
43 |
import fnmatch |
import fnmatch |
44 |
import re |
import re |
45 |
|
import traceback |
46 |
import org.fenfire.test.dbg |
import org.fenfire.test.dbg |
47 |
|
|
48 |
def test(module): |
def test(module): |
160 |
|
|
161 |
for file in tests(self.dirs): |
for file in tests(self.dirs): |
162 |
exceptions.extend(test(load(file))) |
exceptions.extend(test(load(file))) |
163 |
|
|
164 |
|
print |
165 |
|
|
166 |
|
for exc in exceptions: |
167 |
|
traceback.print_exc(*exc['exception']) |
168 |
|
|
169 |
print |
print |
170 |
print "%s test failures." % len(exceptions) |
print "%s test failures." % len(exceptions) |