From 568d2e62b7e777df799cb9183b8ea16cdebd4ce6 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Thu, 9 Jun 2011 08:30:41 +0200 Subject: [PATCH] Allow all tests --- tests/runtests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/runtests.py b/tests/runtests.py index 653a9d1e..4a908ff1 100644 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -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