38 |
import sys |
import sys |
39 |
#sys.path.insert(0, ".") |
#sys.path.insert(0, ".") |
40 |
import os.path, imp |
import os.path, imp |
41 |
import java, gzz |
import java |
42 |
import getopt |
import getopt |
43 |
import fnmatch |
import fnmatch |
44 |
import re |
import re |
45 |
import traceback |
import traceback |
46 |
import org.fenfire.test.dbg |
import org.fenfire.util.dbg |
47 |
|
|
48 |
def test(module): |
def test(module): |
49 |
tests = [test for test in dir(module) if test.startswith('test')] |
tests = [test for test in dir(module) if test.startswith('test')] |
139 |
runfail = [None] |
runfail = [None] |
140 |
|
|
141 |
opts, args = getopt.getopt(args, |
opts, args = getopt.getopt(args, |
142 |
org.fenfire.test.dbg.short + "f:", |
org.fenfire.util.dbg.short + "f:", |
143 |
org.fenfire.test.dbg.long + ["--allowfail="]) |
org.fenfire.util.dbg.long + ["--allowfail="]) |
144 |
for o,a in opts: |
for o,a in opts: |
145 |
print "Opt: ",o,a |
print "Opt: ",o,a |
146 |
if o in gzz.util.dbg.all: |
if o in org.fenfire.util.dbg.all: |
147 |
gzz.util.dbg.option(o,a) |
org.fenfire.util.dbg.option(o,a) |
148 |
elif o in ("-f", "--allowfail"): |
elif o in ("-f", "--allowfail"): |
149 |
if a == "*": |
if a == "*": |
150 |
runfail = ["GL", "AWT", "*"] |
runfail = ["GL", "AWT", "*"] |
177 |
|
|
178 |
java.lang.System.exit(exceptions != []) |
java.lang.System.exit(exceptions != []) |
179 |
|
|
180 |
gzz.client.GraphicsAPI.getInstance().startUpdateManager(Starter(dirs)) |
org.nongnu.libvob.GraphicsAPI.getInstance().startUpdateManager(Starter(dirs)) |
181 |
|
|
182 |
|
|
183 |
if __name__ == '__main__': |
if __name__ == '__main__': |