Skip to content

Commit e9af967

Browse files
Reorg host config (#90)
* We have been recording the host-config already, this fix displays it on the results. Signed-off-by: [email protected] <[email protected]> * Allow you to specify a directory of config files. Signed-off-by: [email protected] <[email protected]> * Update enctests/testframework/main.py Simpler way to grab a directories worth of files. Co-authored-by: Daniel Flehner Heen <[email protected]> Signed-off-by: Sam Richards <[email protected]> --------- Signed-off-by: [email protected] <[email protected]> Signed-off-by: Sam Richards <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Daniel Flehner Heen <[email protected]>
1 parent 837403d commit e9af967

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

enctests/testframework/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,12 @@ def main():
737737
# Load test config file(s)
738738
test_configs = []
739739
if args.test_config_file:
740-
test_configs.append(TestSuite(Path(args.test_config_file)))
740+
test_file = Path(args.test_config_file)
741+
if test_file.is_dir():
742+
for file in test_file.glob('*.yml'):
743+
test_configs.append(TestSuite(file))
744+
else:
745+
test_configs.append(TestSuite(test_file))
741746

742747
else:
743748
test_configs.extend(

enctests/testframework/templates/basicimagecompare.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<img src='{{ config.name }}-vmaf_harmonic_mean.png' /></BR>
1818

19-
Testing with ffmpeg version: {{ testinfo.ffmpeg_version}}
19+
Testing with ffmpeg version: {{ testinfo.ffmpeg_version }} on OS:{{testinfo.host_config.os}} {{testinfo.host_config.os_version}} Architecture: {{testinfo.host_config.processor}}.
2020

2121
{% for media_name, test in tests.items() %}
2222

enctests/testframework/templates/basicmovie.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<img src='{{ config.name }}-vmaf_harmonic_mean.png' />
1717
<img src='{{ config.name }}-psnr_y_harmonic_mean.png' /></BR>
1818

19-
Testing with ffmpeg version: {{ testinfo.ffmpeg_version}}
19+
Testing with ffmpeg version: {{ testinfo.ffmpeg_version }} on OS:{{testinfo.host_config.os}} {{testinfo.host_config.os_version}} Architecture: {{testinfo.host_config.processor}}.
2020

2121
{% for media_name, test in tests.items() %}
2222

enctests/testframework/templates/basicpictures.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<img src='{{ config.name }}-vmaf_harmonic_mean.png' /></BR>
1818

19-
Testing with ffmpeg version: {{ testinfo.ffmpeg_version}}
19+
Testing with ffmpeg version: {{ testinfo.ffmpeg_version }} on OS:{{testinfo.host_config.os}} {{testinfo.host_config.os_version}} Architecture: {{testinfo.host_config.processor}}.
2020

2121
{% for media_name, test in tests.items() %}
2222

enctests/testframework/templates/colorweb.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<img src='{{ config.name }}-max_error.png' /></BR>
1818

19-
Testing with ffmpeg version: {{ testinfo.ffmpeg_version}}
19+
Testing with ffmpeg version: {{ testinfo.ffmpeg_version }} on OS:{{testinfo.host_config.os}} {{testinfo.host_config.os_version}} Architecture: {{testinfo.host_config.processor}}.
2020

2121
{% for media_name, test in tests.items() %}
2222

enctests/testframework/templates/doctests.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<body>
1212
<H1>{{config.title}}</H1>
1313
<P>{{config.description}}</P>
14-
Testing with ffmpeg version: {{ testinfo.ffmpeg_version}}
14+
Testing with ffmpeg version: {{ testinfo.ffmpeg_version }} on OS:{{testinfo.host_config.os}} {{testinfo.host_config.os_version}} Architecture: {{testinfo.host_config.processor}}.
1515

1616
{% for media_name, test in tests.items() %}
1717

enctests/testframework/utils/outputTemplate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def processTemplate(config, timeline):
106106
merge_test_info['psnr_y_harmonic_mean'] = -1
107107

108108
merge_test_info['filesize'] = merge_test_info['filesize']
109+
if 'host_config' in test_info.metadata['aswf_enctests']:
110+
# We assume all the tests have the same values.
111+
testinfo['host_config'] = test_info.metadata['aswf_enctests']['host_config']
109112

110113
# We merge the arguments into the dictionary too, as well as merge it into a single string, to make the graphing simpler.
111114
args=[]

0 commit comments

Comments
 (0)