From 13e502784e98e8e5fdcd6289443a84a6c750b9b3 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Mon, 3 Dec 2018 11:11:19 -0800 Subject: templates/tests: add test template for CI jobs Rather than specifing the list of test suites on the command-line, instead use a new "ci" template for all the test-suites to run for CI jobs. For starters, it combines what is currently in "smoke" and "yocto-ptest" While at it, add the "history: False" property so that the .git directory is not included in the overlay tarball that is downloaded by the target device. Change-Id: Ibf53dfb035d306cf2f40b73b3c7fc15dc6e78b58 Signed-off-by: Kevin Hilman --- templates/config/default.cfg | 2 +- templates/tests/ci.jinja2 | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 templates/tests/ci.jinja2 (limited to 'templates') diff --git a/templates/config/default.cfg b/templates/config/default.cfg index c75300b..5287730 100644 --- a/templates/config/default.cfg +++ b/templates/config/default.cfg @@ -15,4 +15,4 @@ urlbase = http://download.automotivelinux.org/AGL/snapshots/ test_plan = ["smoke", "yocto-ptest"] [ci] urlbase = http://download.automotivelinux.org/AGL/upload/ci/ -test_plan = ["smoke"] +test_plan = ["ci"] diff --git a/templates/tests/ci.jinja2 b/templates/tests/ci.jinja2 new file mode 100644 index 0000000..2d91611 --- /dev/null +++ b/templates/tests/ci.jinja2 @@ -0,0 +1,23 @@ + +- test: + definitions: + - repository: https://git.automotivelinux.org/src/qa-testdefinitions + from: git + history: False + path: test-suites/short-smoke/busybox.yaml + name: busybox + - repository: https://git.automotivelinux.org/src/qa-testdefinitions + from: git + history: False + path: test-suites/short-smoke/smoke-tests-basic.yaml + name: smoke-tests-basic + - repository: https://git.automotivelinux.org/src/qa-testdefinitions + from: git + history: False + path: test-suites/short-smoke/service-check.yaml + name: service-check + - repository: https://git.automotivelinux.org/src/qa-testdefinitions + from: git + history: False + path: test-suites/yocto-ptest.yaml + name: yocto-ptest -- cgit 1.2.3-korg