{# Scripts, for visualization#} {# Render measurement result charts #} {% for test in test_data %} {% if test.status == 'SUCCESS' %} {% for measurement in test.measurements %} {% set chart_elem_id = test.name + '_' + measurement.name + '_chart' %} {% include 'measurement_chart.html' %} {% endfor %} {% endif %} {% endfor %} {# Styles #} {{ title }} {% macro poky_link(commit) -%} {{ commit[0:11] }} {%- endmacro %}
{# Test metadata #}

General


{% for key, item in metadata.items() %} {%if key == 'commit' %} {% else %} {% endif %} {% endfor %}
Current commit Comparing with
{{ item.title }}{{ poky_link(item.value) }} {{ poky_link(item.value_old) }}{{ item.value }} {{ item.value_old }}
{# Test result summary #}

Test result summary


{% for test in test_data %} {% if loop.index is even %} {% set row_style = 'style="background-color: #f2f2f2"' %} {% else %} {% set row_style = 'style="background-color: #ffffff"' %} {% endif %} {% if test.status == 'SUCCESS' %} {% for measurement in test.measurements %} {# add empty cell in place of the test name#} {% if loop.index > 1 %}{% endif %} {% if measurement.absdiff > 0 %} {% set result_style = "color: red" %} {% elif measurement.absdiff == measurement.absdiff %} {% set result_style = "color: green" %} {% else %} {% set result_style = "color: orange" %} {%endif %} {% endfor %} {% else %} {% endif %} {% endfor %}
{{ test.name }}: {{ test.description }}{{ measurement.description }} {{ measurement.value.mean }} {{ measurement.absdiff_str }} {{ measurement.reldiff }}
{{test.status }}
{# Detailed test results #} {% for test in test_data %}

{{ test.name }}: {{ test.description }}


{% if test.status == 'SUCCESS' %} {% for measurement in test.measurements %}

{{ measurement.description }}

{{ measurement.value.mean }} {% if measurement.absdiff > 0 %} {% elif measurement.absdiff == measurement.absdiff %} {% else %} {% endif %} {{ measurement.absdiff_str }} ({{measurement.reldiff}})
{# Linechart #}
{# Measurement statistics #}
Test runs{{ measurement.value.sample_cnt }}
-/+-{{ measurement.value.minus }} / +{{ measurement.value.plus }}
Min{{ measurement.value.min }}
Max{{ measurement.value.max }}
Stdev{{ measurement.value.stdev }}
{% endfor %} {# Unsuccessful test #} {% else %} {{ test.status }} {% if test.err_type %}({{ test.err_type }}){% endif %}
{{ test.message }}
{% endif %} {% endfor %}