aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-09 14:35:45 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-09 14:35:50 +0200
commitdf2bdeb86d2aae337099db86b87de4c353592185 (patch)
treed0ca33e790a097723bae3ea3c79357995a916798 /common
parentec4faa26c9639a8bb6a5b025dc94de57ac874d78 (diff)
Add test definitions for pyagl
We can now call pytest using the pyagl/tests module. These expose -k regular and -k hwrequired, thus create two caller scripts. Also create a sample testsuite entry using the regular variant with limited AGL_AVAILABLE_INTERFACES. Bug-AGL: SPEC-3572 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: Ic6b977da959f946ca88348715d5249748c70f736
Diffstat (limited to 'common')
-rwxr-xr-xcommon/scripts/pyagl-hwrequired-lava.sh5
-rwxr-xr-xcommon/scripts/pyagl-regular-lava.sh7
2 files changed, 12 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
+
+