summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcommon/scripts/pyagl-hwrequired-lava.sh5
-rwxr-xr-xcommon/scripts/pyagl-regular-lava.sh7
-rw-r--r--test-suites/short-smoke/pyagl-regular-oneshot.yaml14
3 files changed, 26 insertions, 0 deletions
diff --git a/common/scripts/pyagl-hwrequired-lava.sh b/common/scripts/pyagl-hwrequired-lava.sh
new file mode 100755
index 0000000..8477b64
--- /dev/null
+++ b/common/scripts/pyagl-hwrequired-lava.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+pytest --show-capture=no --color=no -k hwrequired /usr/lib/python?.?/site-packages/pyagl/tests/ -L
+
+
diff --git a/common/scripts/pyagl-regular-lava.sh b/common/scripts/pyagl-regular-lava.sh
new file mode 100755
index 0000000..db1799c
--- /dev/null
+++ b/common/scripts/pyagl-regular-lava.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+# for now play safe and only expect ethernet
+export AGL_AVAILABLE_INTERFACES="ethernet"
+
+pytest --color=no --show-capture=no -k regular /usr/lib/python?.?/site-packages/pyagl/tests/ -L
+
+
diff --git a/test-suites/short-smoke/pyagl-regular-oneshot.yaml b/test-suites/short-smoke/pyagl-regular-oneshot.yaml
new file mode 100644
index 0000000..0bc53fd
--- /dev/null
+++ b/test-suites/short-smoke/pyagl-regular-oneshot.yaml
@@ -0,0 +1,14 @@
+# These tests are applicable if the board to be used has at least one CAN interface.
+
+metadata:
+ name: pyagl_regular_oneshot
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "pyagl_regular_oneshot"
+ version: 1.0
+
+run:
+ steps:
+ - echo "pyagl regular oneshot"
+ - lava-test-set start pyagl-regular-oneshot
+ - ./common/scripts/pyagl-regular-lava.sh
+ - lava-test-set stop