X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/0acee7985cbb654d6fa50cb845c7c03ce6bb8a1d..7a92cb7d12234e559c0ec6f5e3e393f8350ef727:/test/test.py?ds=inline diff --git a/test/test.py b/test/test.py index da0a1f4..e6b5b6d 100755 --- a/test/test.py +++ b/test/test.py @@ -22,11 +22,18 @@ res_name = "res" + datetime.datetime.now().strftime("%Y%m%d%H%M") + "-" + git_ha test_results = [] n = 1 +args = ["-w", "640"] +if len(sys.argv) > 1 and sys.argv[1] == "debug": + args = ["-vds"] + args + +args = ["../imago"] + args + for fl in test_files: print "testing file", fl, str(n) + "/" + str(len(test_files)) + print " ".join(args + [fl]) n += 1 t0 = time.time() - proc = subprocess.Popen(["../imago", "-w", "640", fl], + proc = subprocess.Popen(args + [fl], stdout=subprocess.PIPE, stderr=subprocess.PIPE) [output, err] = proc.communicate()