aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-10-13 17:30:05 +0200
committerCorentin LABBE <clabbe@baylibre.com>2020-10-14 15:27:06 +0200
commite52669816edfa0ef48c61a5a7650614a58c02a72 (patch)
tree067817eaf1c885146d6666f5e81d5945797739c3 /templates
parentbc944019a9f558454ede39b95e5da39fca0c81f8 (diff)
SPEC-3631: Add veth test
Add veth test which adds an extra virtual network card for testing. Change-Id: Iad5499ad653b4511fd7bd21f57d1b42ef4decb22 Bug-AGL: SPEC-3631 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/base/agl-base.jinja23
-rw-r--r--templates/tests/veth.jinja28
2 files changed, 11 insertions, 0 deletions
diff --git a/templates/base/agl-base.jinja2 b/templates/base/agl-base.jinja2
index 592970c..346de32 100644
--- a/templates/base/agl-base.jinja2
+++ b/templates/base/agl-base.jinja2
@@ -41,6 +41,9 @@ actions:
{%- block boot %}
{% endblock %}
{%- block tests %}
+{%- if rootfs_type == "nbd" %}
+{% include "tests/veth.jinja2" %}
+{%- endif %}
{%-for test_template in test_templates %}
{% include test_template %}
{%- endfor %}
diff --git a/templates/tests/veth.jinja2 b/templates/tests/veth.jinja2
new file mode 100644
index 0000000..4968492
--- /dev/null
+++ b/templates/tests/veth.jinja2
@@ -0,0 +1,8 @@
+- test:
+ timeout:
+ minutes: 4
+ definitions:
+ - repository: https://git.automotivelinux.org/src/qa-testdefinitions
+ from: git
+ path: test-suites/short-smoke/network-veth.yaml
+ name: network-veth