summaryrefslogtreecommitdiff
path: root/validation/test/av_home/av_home.py
diff options
context:
space:
mode:
Diffstat (limited to 'validation/test/av_home/av_home.py')
-rwxr-xr-xvalidation/test/av_home/av_home.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/validation/test/av_home/av_home.py b/validation/test/av_home/av_home.py
index 57185a25d0..13b15b992a 100755
--- a/validation/test/av_home/av_home.py
+++ b/validation/test/av_home/av_home.py
@@ -356,8 +356,7 @@ def do_plot (direction, directory):
pylab.clf()
def get_test_data ():
- tpl = """Test {name}
-================
+ tpl = """{name}
::
@@ -385,12 +384,13 @@ Tonemaps and throughput
dir_re = re.compile (r"^test_home-(.*)$")
for d in sorted(directories):
if dir_re.match (d):
+ name = get_name (dir_re.match (d).group (1))
desc = get_test_desc (d)
discovery = get_field (d, "discovery")
avln = get_field (d, "avln")
attenuation = get_field (d, "attenuation")
graph = get_graph (d)
- result += tpl.format (name = dir_re.match (d).group (1),
+ result += tpl.format (name = name,
desc = desc,
discovery = discovery,
avln = avln,
@@ -398,6 +398,13 @@ Tonemaps and throughput
graph = graph)
return result
+def get_name (name):
+ result = "Test %s:" % name
+ underline = ""
+ for i in xrange (len(result)):
+ underline += "="
+ return result + "\n" + underline
+
def get_field (d, file):
f = open (os.path.join (av_home_attr.prefix, d, "%s-master" % file), "r")
value = f.read ()