diff options
3 files changed, 19 insertions, 1 deletions
diff --git a/meta-agl-profile-core/recipes-test/pyagl/files/run-pyagl-test b/meta-agl-profile-core/recipes-test/pyagl/files/run-pyagl-test new file mode 100644 index 0000000..e62941c --- /dev/null +++ b/meta-agl-profile-core/recipes-test/pyagl/files/run-pyagl-test @@ -0,0 +1,4 @@ +#!/bin/bash + +export ${AGL_AVAILABLE_INTERFACES:=ethernet} +pytest -k "not hwrequired" /usr/lib/python?.?/site-packages/pyagl/tests diff --git a/meta-agl-profile-core/recipes-test/pyagl/files/run-pyagl-test-lava b/meta-agl-profile-core/recipes-test/pyagl/files/run-pyagl-test-lava new file mode 100644 index 0000000..355eadf --- /dev/null +++ b/meta-agl-profile-core/recipes-test/pyagl/files/run-pyagl-test-lava @@ -0,0 +1,4 @@ +#!/bin/bash + +export ${AGL_AVAILABLE_INTERFACES:=ethernet} +pytest -L -k "not hwrequired" /usr/lib/python?.?/site-packages/pyagl/tests diff --git a/meta-agl-profile-core/recipes-test/pyagl/pyagl_git.bb b/meta-agl-profile-core/recipes-test/pyagl/pyagl_git.bb index db6f7de..744a320 100644 --- a/meta-agl-profile-core/recipes-test/pyagl/pyagl_git.bb +++ b/meta-agl-profile-core/recipes-test/pyagl/pyagl_git.bb @@ -3,7 +3,11 @@ HOMEPAGE = "https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/pyagl LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=ae6497158920d9524cf208c09cc4c984" -SRC_URI = "git://gerrit.automotivelinux.org/gerrit/src/pyagl;protocol=https;branch=${AGL_BRANCH}" +SRC_URI = " \ + git://gerrit.automotivelinux.org/gerrit/src/pyagl;protocol=https;branch=${AGL_BRANCH} \ + file://run-pyagl-test \ + file://run-pyagl-test-lava \ + " SRCREV = "bc241e850fa1d2ceeb76acd9bac8733868392baa" PV = "${AGL_BRANCH}+git${SRCPV}" @@ -11,6 +15,12 @@ S = "${WORKDIR}/git" inherit setuptools3 +do_install_append() { + install -d ${D}/${bindir} + install -m 644 ${WORKDIR}/run-pyagl-test ${D}/${bindir} + install -m 644 ${WORKDIR}/run-pyagl-test-lava ${D}/${bindir} +} + RDEPENDS_${PN} += " \ python3-asyncio \ python3-asyncssh \ |