Skip to content
Snippets Groups Projects
Commit dad23918 authored by Nicolas Dechesne's avatar Nicolas Dechesne
Browse files

Testplan: add support to build PDF


It is a bit convoluted.. but making good PDF is hard.. So we use a
Pandoc markdown template file (instead of Textile), and we generate a
PDF out of it.

Signed-off-by: default avatarNicolas Dechesne <nicolas.dechesne@linaro.org>
---
title: |
![](../../../images/Linaro-Logo.svg){width=3in}
{{obj.metadata.description}}
author: {{obj.metadata.owner[0]}}
date: {{obj.metadata.now}}
header-includes: |
\usepackage{sectsty}
\sectionfont{\newpage}
\usepackage{longtable}\setlength{\LTleft}{2em}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[CO,CE]{ Version {{ obj.metadata.version}} }
\fancyhead[L,R]{}
\fancyfoot[CO,CE]{Linaro Ltd. - {{obj.metadata.description}}}
\fancyfoot[LE,RO]{\thepage}
---
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
This document was prepared by Linaro specifically for Qualcomm Technologies, Inc., hereafter referred to as “Qualcomm” or "the customer" in this document. Its contents, including but not limited to scopes of work, project schedules and proposed systems solutions are confidential and proprietary to Linaro. The contents are intended for use by the customer to evaluate Linaro’s work plan, and may not be used in any other manner without prior written approval of Linaro.
# Version History
The following table outlines the edits made to the test plan document template.
| Version | Changes | Changes by | Date |
|--------:|:-------:|:----------:|:----:|
| 0.1 | Initial version | Amit Kucheria | 18 June 2020 |
| 0.2 | Conversion to Jinja template | Nicolas Dechesne | 29 September 2020 |
# Executive Summary
This document describes the testing Linaro will carry out when making a release of the {{ obj.metadata.description }}.
# Hardware Platforms
Linaro provide releases for the following platforms from Qualcomm:
| Board | Board Revision |
|------:|:--------------:|
| RB5 | xxx |
| RB5 Vision Kit | xxx |
{% if obj.tests is defined %}
{% if obj.tests.automated is defined and obj.tests.automated is not none %}
# Automated Tests
Linaro runs automated testing in the LAVA lab.
The upstream Linaro Test Definitions repo is here: <https://github.com/Linaro/test-definitions>
## Test Descriptions
This section describes the automated tests used from the Linaro Test Definitions repository.
{% for test in obj.tests.automated %}
{% if test.missing %} missing {% endif %}
### {{ loop.index }}. {{ test.name }}
{{ test.description }}
_Test definition:_ [{{ test.path }}]({{ test.repository + '/tree/' + test.revision + '/' + test.path }})
_Test scope:_ {{ test.scope[0] }}
{% if test.parameters is defined %}
| Parameter | Value |
|----------:|:-----:|
{%- for p in test.parameters|rejectattr("SKIP_INSTALL") %}
| {{ p }} | {{ test.parameters[p] }} |
{%- endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
## Test Job Definitions
The test jobs are defined as YAML files in a [git repository](https://git.linaro.org/ci/job/configs.git).
The definitions are defined [here](https://git.linaro.org/ci/job/configs.git/tree/lt-qcom/lava-job-definitions/testplan)
{% if obj.tests is defined %}
{% if obj.tests.manual is defined and obj.tests.manual is not none %}
# Manual Tests
Linaro runs the following manual tests:
{% for test in obj.tests.manual %}
{% if test.missing %} missing {% endif %}
### {{ loop.index }}. {{ test.name }}
{{ test.description }}
_Test definition:_ [{{ test.path }}]({{ test.repository + '/tree/' + test.revision + '/' + test.path }})
_Test scope:_ {{ test.scope[0] }}
{% endfor %}
{% endif %}
{% endif %}
../../../pandoc.sh
\ No newline at end of file
#!/bin/bash
pandoc "$1" \
-f markdown \
-V linkcolor:blue \
-V geometry:a4paper \
-V geometry:margin=2cm \
-V 'mainfont:DejaVuSerif' \
-V 'sansfont:DejaVuSans' \
-V 'monofont:DejaVuSansMono' \
-o "${1/.md/.pdf}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment