projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
slowly getting there
[imago.git]
/
test
/
test.py
diff --git
a/test/test.py
b/test/test.py
index
da0a1f4
..
e6b5b6d
100755
(executable)
--- 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
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))
for fl in test_files:
print "testing file", fl, str(n) + "/" + str(len(test_files))
+ print " ".join(args + [fl])
n += 1
t0 = time.time()
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()
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
[output, err] = proc.communicate()