aboutsummaryrefslogtreecommitdiffstats
path: root/templates/tests
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2017-08-22 16:07:47 -0700
committerKevin Hilman <khilman@baylibre.com>2017-09-01 15:52:07 -0700
commit05146fa425d94a77ba35b43ac3b0a5c633163d4e (patch)
tree1d68bd51a1dfe8cc6c5e19fe517dbb19f3b67725 /templates/tests
parent263fa00cd42334c69897ebad72fcd9d6acd89aeb (diff)
initial snapshot: LAVA job creation based on templates
Change-Id: I5d545d3531f4c4190453724738076bd4eddfc4d6 Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Loys Ollivier <lollivier@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'templates/tests')
-rw-r--r--templates/tests/smoke.jinja212
-rw-r--r--templates/tests/test1.jinja221
-rw-r--r--templates/tests/test2.jinja222
3 files changed, 55 insertions, 0 deletions
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
+