summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2017-10-06 14:51:45 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2017-10-06 14:51:45 +0000
commitd77f58b463197283e90170c39df9ba20fa572d27 (patch)
tree5f8b1781d93e90e5c7b25df546aa1580cb64fb9d
parent364641197bfe95512555abc36b7b62ac48166aaf (diff)
parent0c7d5b17c5431b77fcc6ab7ec4c040620397bfae (diff)
Merge "Provide a short test documentation"
-rw-r--r--doc/test-documentation.md20
-rw-r--r--doc/test_remote_scripts.jinja27
2 files changed, 27 insertions, 0 deletions
diff --git a/doc/test-documentation.md b/doc/test-documentation.md
new file mode 100644
index 0000000..4ad5688
--- /dev/null
+++ b/doc/test-documentation.md
@@ -0,0 +1,20 @@
+# Test documentation
+
+### Test parsing
+All the tests templates within <releng-scripts>/templates/tests/ are parsed by the tools
+can be added to a test plan.
+
+### Add test definition
+Just create a new jinja2 template file within the tests folder containing the tests definitions.\
+A test example is provided in the doc/ folder pointing to the remote
+test definition repository: [https://git.automotivelinux.org/src/qa-testdefinitions/tree/](qa-testdefinitions).
+
+### Generate test plans
+Use the create-jobs.py script to generate test plans. Just use the `--test` parameter with the
+test name or `--test all` to run all tests.
+
+### Examples
+Add new test definition:\
+`$ cp doc/test_remote_scripts.jinja2 templates/tests/`\
+Generate test job from the new test definition:\
+`$ ./utils/create-jobs.py raspberrypi3 --test test_remote_scripts`
diff --git a/doc/test_remote_scripts.jinja2 b/doc/test_remote_scripts.jinja2
new file mode 100644
index 0000000..327b580
--- /dev/null
+++ b/doc/test_remote_scripts.jinja2
@@ -0,0 +1,7 @@
+- test:
+ definitions:
+ - repository: https://git.automotivelinux.org/src/qa-testdefinitions
+ from: git
+ path: doc/skeleton.yaml
+ name: skeleton
+