mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-30 12:30:36 +00:00
libseccomp: convert test package to ptest
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
21e1f1177c
commit
8b38c93f23
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd tests
|
||||||
|
./regression -a
|
||||||
@@ -8,37 +8,37 @@ SRCREV = "ce5aea6a4ae7523b57ec13e2e6150aa5d83c1b4e"
|
|||||||
|
|
||||||
PV = "2.3.1+git${SRCPV}"
|
PV = "2.3.1+git${SRCPV}"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/seccomp/libseccomp.git;"
|
SRC_URI = "git://github.com/seccomp/libseccomp.git \
|
||||||
|
file://run-ptest \
|
||||||
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
inherit autotools-brokensep pkgconfig
|
inherit autotools-brokensep pkgconfig ptest
|
||||||
|
|
||||||
PACKAGECONFIG ??= ""
|
PACKAGECONFIG ??= ""
|
||||||
PACKAGECONFIG[python] = "--enable-python, --disable-python, python"
|
PACKAGECONFIG[python] = "--enable-python, --disable-python, python"
|
||||||
|
|
||||||
do_compile_append() {
|
do_compile_ptest() {
|
||||||
oe_runmake -C tests check-build
|
oe_runmake -C tests check-build
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append() {
|
do_install_ptest() {
|
||||||
install -d ${D}/${libdir}/${PN}/tests
|
install -d ${D}${PTEST_PATH}/tests
|
||||||
install -d ${D}/${libdir}/${PN}/tools
|
install -d ${D}${PTEST_PATH}/tools
|
||||||
for file in $(find tests/* -executable -type f); do
|
for file in $(find tests/* -executable -type f); do
|
||||||
install -m 744 ${S}/${file} ${D}/${libdir}/${PN}/tests
|
install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests
|
||||||
done
|
done
|
||||||
for file in $(find tests/*.tests -type f); do
|
for file in $(find tests/*.tests -type f); do
|
||||||
install -m 744 ${S}/${file} ${D}/${libdir}/${PN}/tests
|
install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests
|
||||||
done
|
done
|
||||||
for file in $(find tools/* -executable -type f); do
|
for file in $(find tools/* -executable -type f); do
|
||||||
install -m 744 ${S}/${file} ${D}/${libdir}/${PN}/tools
|
install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGES += " ${PN}-tests"
|
|
||||||
FILES_${PN} = "${bindir} ${libdir}/${PN}.so*"
|
FILES_${PN} = "${bindir} ${libdir}/${PN}.so*"
|
||||||
FILES_${PN}-tests = "${libdir}/${PN}/tools ${libdir}/${PN}/tests"
|
|
||||||
FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug"
|
FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug"
|
||||||
|
|
||||||
RDEPENDS_${PN} = "bash"
|
RDEPENDS_${PN} = "bash"
|
||||||
RDEPENDS_${PN}-tests = "bash"
|
RDEPENDS_${PN}-ptest = "bash"
|
||||||
|
|||||||
Reference in New Issue
Block a user