Skip to contentSkip to conversation

libseccomp: add package for tests.

PATCH New Armin Kuster 1 participant 1 message Sep 5, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libseccomp: add package for tests.

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.

---
 recipes-security/libseccomp/libseccomp_2.1.1.bb | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
recipes-security/libseccomp/libseccomp_2.1.1.bb +10 -1
index 27fa259..0896f85 100644
@@ -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/*"
Signature · 1 line
1.9.1