Allow all tests

This commit is contained in:
Jan Kaluza 2011-06-09 08:30:41 +02:00
parent 04f7a03780
commit 568d2e62b7

View file

@ -23,7 +23,7 @@ def run_spectrum(backend, test):
)
f.close()
p = Popen("../spectrum/src/spectrum sample.cfg > " + backend + "_" + test + ".log 2>&1", shell=True)
time.sleep(3)
time.sleep(4)
return p
def one_test_run():
@ -31,19 +31,18 @@ def one_test_run():
os.system("rm *.log")
for backend in os.listdir("../backends"):
if not os.path.isdir("../backends/" + backend) or backend == "CMakeFiles" or backend.startswith("libirc"):
if not os.path.isdir("../backends/" + backend) or backend == "CMakeFiles":
continue
for d in os.listdir("."):
binary = d + "/" + d + "_test"
if not os.path.exists(binary) or d.find("bad") != -1:
if not os.path.exists(binary):
continue
p = run_spectrum(backend, d)
if backend.find("purple") >= 0:
p = Popen(binary + " pyjim%jabber.cz@localhost test", shell=True)
else:
p = Popen(binary + " testnickname%irc.freenode.net@localhost test", shell=True)
@ -54,6 +53,7 @@ def one_test_run():
if p.returncode == 0 and seconds < 20:
print "[ PASS ]", backend, binary
else:
if seconds == 20:
print "[ TIME ]", backend, binary