* [meta-security][PATCH] libseccomp: add package for tests.
@ 2014-09-05 4:03 Armin Kuster
0 siblings, 0 replies; only message in thread
From: Armin Kuster @ 2014-09-05 4:03 UTC (permalink / raw)
To: yocto
I wanted to run the tests manually on a target. Tests are now
built and packaged.
to run: /usr/lib/libseccomp/tests/regression -a
will add ptest later.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
recipes-security/libseccomp/libseccomp_2.1.1.bb | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/recipes-security/libseccomp/libseccomp_2.1.1.bb b/recipes-security/libseccomp/libseccomp_2.1.1.bb
index 27fa259..0896f85 100644
--- a/recipes-security/libseccomp/libseccomp_2.1.1.bb
+++ b/recipes-security/libseccomp/libseccomp_2.1.1.bb
@@ -18,6 +18,15 @@ do_configure() {
${S}/configure --prefix=${prefix} --libdir=${libdir}
}
+do_compile_append() {
+ oe_runmake DESTDIR=${D} tests
+}
+
do_install() {
- oe_runmake DESTDIR=${D} install
+ oe_runmake DESTDIR=${D} install
+ oe_runmake DESTDIR=${D} install-tests
}
+
+PACKAGES += "${PN}-tests "
+FILES_${PN}-tests = "${libdir}/${BPN}/tests/*"
+FILES_${PN}-dbg += "${libdir}/${BPN}/tests/.debug/*"
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-05 4:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-05 4:03 [meta-security][PATCH] libseccomp: add package for tests Armin Kuster
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.