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()