Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 44 additions & 43 deletions recipes-core/packagegroups/packagegroup-ni-ptest-smoke.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
"
8 changes: 8 additions & 0 deletions recipes-ni/nilrt-snac/files/run-ptest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env python3

import pytest

pytest.main([
"-v",
"/usr/lib/nilrt-snac/tests/integration",
])
16 changes: 15 additions & 1 deletion recipes-ni/nilrt-snac/nilrt-snac_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
"