fix transposition bug
[imago.git] / test / test.py
index da0a1f4..e6b5b6d 100755 (executable)
@@ -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()