From 05146fa425d94a77ba35b43ac3b0a5c633163d4e Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Tue, 22 Aug 2017 16:07:47 -0700 Subject: initial snapshot: LAVA job creation based on templates Change-Id: I5d545d3531f4c4190453724738076bd4eddfc4d6 Signed-off-by: Jerome Brunet Signed-off-by: Loys Ollivier Signed-off-by: Kevin Hilman --- templates/tests/smoke.jinja2 | 12 ++++++++++++ templates/tests/test1.jinja2 | 21 +++++++++++++++++++++ templates/tests/test2.jinja2 | 22 ++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 templates/tests/smoke.jinja2 create mode 100644 templates/tests/test1.jinja2 create mode 100644 templates/tests/test2.jinja2 (limited to 'templates/tests') diff --git a/templates/tests/smoke.jinja2 b/templates/tests/smoke.jinja2 new file mode 100644 index 0000000..c3e62dc --- /dev/null +++ b/templates/tests/smoke.jinja2 @@ -0,0 +1,12 @@ + +- test: + definitions: + - repository: https://git.automotivelinux.org/src/qa-testdefinitions + from: git + path: test-suites/short-smoke/busybox.yaml + name: busybox + - repository: https://git.automotivelinux.org/src/qa-testdefinitions + from: git + path: test-suites/short-smoke/smoke-tests-basic.yaml + name: smoke-tests-basic + diff --git a/templates/tests/test1.jinja2 b/templates/tests/test1.jinja2 new file mode 100644 index 0000000..8b04691 --- /dev/null +++ b/templates/tests/test1.jinja2 @@ -0,0 +1,21 @@ + +- test: + timeout: + minutes: 2 + definitions: + - repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: test1 + description: "test1" + os: + - debian + scope: + - functional + run: + steps: + - lava-test-set start test1 + - lava-test-case always-pass --shell true + from: inline + name: dummytest1 + path: inline/test1.yaml diff --git a/templates/tests/test2.jinja2 b/templates/tests/test2.jinja2 new file mode 100644 index 0000000..4dd4a14 --- /dev/null +++ b/templates/tests/test2.jinja2 @@ -0,0 +1,22 @@ + +- test: + timeout: + minutes: 2 + definitions: + - repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: test2 + description: "test2" + os: + - debian + scope: + - functional + run: + steps: + - lava-test-set start test2 + - lava-test-case always-fail --shell false + from: inline + name: dummytest2 + path: inline/test2.yaml + -- cgit 1.2.3-korg