diff --git a/recipes-core/packagegroups/packagegroup-ni-ptest-smoke.bb b/recipes-core/packagegroups/packagegroup-ni-ptest-smoke.bb index b0222d41a..b4a328a8f 100644 --- a/recipes-core/packagegroups/packagegroup-ni-ptest-smoke.bb +++ b/recipes-core/packagegroups/packagegroup-ni-ptest-smoke.bb @@ -13,47 +13,48 @@ RDEPENDS:${PN} = "ptest-runner" # ptest packages RDEPENDS:${PN}:append = "\ - busybox-ptest \ - bzip2-ptest \ - coreutils-ptest \ - docker-functional-tests-ptest \ - e2fsprogs-ptest \ - elfutils-ptest \ - ethtool-ptest \ - flex-ptest \ - gettext-ptest \ - glibc-locale-tests-ptest \ - glibc-tests-ptest \ - kernel-tests-ptest \ - liberror-perl-ptest \ - libxml2-ptest \ - mdadm-ptest \ - nettle-ptest \ - ni-hw-scripts-ptest \ - ni-test-boot-time-ptest \ - opkg-ptest \ - pango-ptest \ - parted-ptest \ - perl-ptest \ - pstore-save-ptest \ - python3-appdirs-ptest \ - python3-atomicwrites-ptest \ - python3-bcrypt-ptest \ - python3-cryptography-ptest \ - python3-markupsafe-ptest \ - python3-more-itertools-ptest \ - python3-msgpack-ptest \ - python3-multidict-ptest \ - python3-pluggy-ptest \ - python3-pyasn1-ptest \ - python3-pyroute2-ptest \ - python3-pyserial-ptest \ - python3-pytz-ptest \ - python3-wcwidth-ptest \ - rt-tests-ptest \ - run-postinsts-ptest \ - sed-ptest \ - util-linux-ptest \ - xorg-fonts-100dpi-ptest \ - zeromq-ptest \ + busybox-ptest \ + bzip2-ptest \ + coreutils-ptest \ + docker-functional-tests-ptest \ + e2fsprogs-ptest \ + elfutils-ptest \ + ethtool-ptest \ + flex-ptest \ + gettext-ptest \ + glibc-locale-tests-ptest \ + glibc-tests-ptest \ + kernel-tests-ptest \ + liberror-perl-ptest \ + libxml2-ptest \ + mdadm-ptest \ + nettle-ptest \ + ni-hw-scripts-ptest \ + ni-test-boot-time-ptest \ + nilrt-snac-ptest \ + opkg-ptest \ + pango-ptest \ + parted-ptest \ + perl-ptest \ + pstore-save-ptest \ + python3-appdirs-ptest \ + python3-atomicwrites-ptest \ + python3-bcrypt-ptest \ + python3-cryptography-ptest \ + python3-markupsafe-ptest \ + python3-more-itertools-ptest \ + python3-msgpack-ptest \ + python3-multidict-ptest \ + python3-pluggy-ptest \ + python3-pyasn1-ptest \ + python3-pyroute2-ptest \ + python3-pyserial-ptest \ + python3-pytz-ptest \ + python3-wcwidth-ptest \ + rt-tests-ptest \ + run-postinsts-ptest \ + sed-ptest \ + util-linux-ptest \ + xorg-fonts-100dpi-ptest \ + zeromq-ptest \ " diff --git a/recipes-ni/nilrt-snac/files/run-ptest b/recipes-ni/nilrt-snac/files/run-ptest new file mode 100644 index 000000000..053978fee --- /dev/null +++ b/recipes-ni/nilrt-snac/files/run-ptest @@ -0,0 +1,8 @@ +#!/usr/bin/env python3 + +import pytest + +pytest.main([ + "-v", + "/usr/lib/nilrt-snac/tests/integration", +]) diff --git a/recipes-ni/nilrt-snac/nilrt-snac_git.bb b/recipes-ni/nilrt-snac/nilrt-snac_git.bb index c03a4d35e..9e559e798 100644 --- a/recipes-ni/nilrt-snac/nilrt-snac_git.bb +++ b/recipes-ni/nilrt-snac/nilrt-snac_git.bb @@ -10,23 +10,37 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=380df876633ca23587b9851600778cc0" SRC_URI = "\ git://github.com/ni/nilrt-snac;branch=master;protocol=https \ + file://run-ptest \ " - SRCREV = "${AUTOREV}" PV = "0.1.1+git${SRCPV}" S = "${WORKDIR}/git" +inherit ptest + + do_install() { oe_runmake install \ DESTDIR=${D} } +do_install_ptest() { + install -m 0755 ${WORKDIR}/run-ptest ${D}${PTEST_PATH} +} + RDEPENDS:${PN} = "\ bash \ opkg \ python3-core \ " + +FILES:${PN}-ptest += "${libdir}/${PN}/tests/integration" +RDEPENDS:${PN}-ptest += "\ + bash \ + python3-core \ + python3-pytest \ +"