summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/conf/include/ptest-packagelists-meta-oe.inc1
-rw-r--r--meta-oe/recipes-crypto/botan/botan/run-ptest2
-rw-r--r--meta-oe/recipes-crypto/botan/botan_3.10.0.bb8
3 files changed, 8 insertions, 3 deletions
diff --git a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
index d092c3c327..d475108cfc 100644
--- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
+++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
@@ -9,6 +9,7 @@
9PTESTS_FAST_META_OE = "\ 9PTESTS_FAST_META_OE = "\
10 asio \ 10 asio \
11 audiofile \ 11 audiofile \
12 botan \
12 cli11 \ 13 cli11 \
13 cmocka \ 14 cmocka \
14 cunit \ 15 cunit \
diff --git a/meta-oe/recipes-crypto/botan/botan/run-ptest b/meta-oe/recipes-crypto/botan/botan/run-ptest
new file mode 100644
index 0000000000..42ddb161eb
--- /dev/null
+++ b/meta-oe/recipes-crypto/botan/botan/run-ptest
@@ -0,0 +1,2 @@
1#!/bin/sh
2botan-test --data-dir=/usr/share/botan/tests/data/ | tee ./test.out | grep " ran " | sed 's/^\(.*\) ran .* all ok$/PASS: \1/; s/^\(.*\) ran .* FAILED$/FAIL: \1/'
diff --git a/meta-oe/recipes-crypto/botan/botan_3.10.0.bb b/meta-oe/recipes-crypto/botan/botan_3.10.0.bb
index e079dd73de..dcc0e6aa77 100644
--- a/meta-oe/recipes-crypto/botan/botan_3.10.0.bb
+++ b/meta-oe/recipes-crypto/botan/botan_3.10.0.bb
@@ -4,12 +4,13 @@ LICENSE = "BSD-2-Clause"
4LIC_FILES_CHKSUM = "file://license.txt;md5=3f911cecfc74a2d9f1ead9a07bd92a6e" 4LIC_FILES_CHKSUM = "file://license.txt;md5=3f911cecfc74a2d9f1ead9a07bd92a6e"
5SECTION = "libs" 5SECTION = "libs"
6 6
7SRC_URI = "https://botan.randombit.net/releases/Botan-${PV}.tar.xz" 7SRC_URI = "https://botan.randombit.net/releases/Botan-${PV}.tar.xz \
8 file://run-ptest"
8SRC_URI[sha256sum] = "fde194236f6d5434f136ea0a0627f6cc9d26af8b96e9f1e1c7d8c82cd90f4f24" 9SRC_URI[sha256sum] = "fde194236f6d5434f136ea0a0627f6cc9d26af8b96e9f1e1c7d8c82cd90f4f24"
9 10
10S = "${UNPACKDIR}/Botan-${PV}" 11S = "${UNPACKDIR}/Botan-${PV}"
11 12
12inherit python3native siteinfo lib_package 13inherit python3native siteinfo lib_package ptest
13 14
14CPU ?= "${TARGET_ARCH}" 15CPU ?= "${TARGET_ARCH}"
15CPU:x86 = "x86_32" 16CPU:x86 = "x86_32"
@@ -55,7 +56,8 @@ FILES:${PN}-python3 = "${libdir}/python3"
55 56
56RDEPENDS:${PN}-python3 += "python3" 57RDEPENDS:${PN}-python3 += "python3"
57RDEPENDS:${PN}-bin += "${PN}" 58RDEPENDS:${PN}-bin += "${PN}"
58RDEPENDS:${PN}-test += "${PN}" 59RDEPENDS:${PN}-test += "${PN} ca-certificates"
60RDEPENDS:${PN}-ptest += "${PN}-test"
59FILES:${PN}:remove = "${bindir}/*" 61FILES:${PN}:remove = "${bindir}/*"
60FILES:${PN}-bin:remove = "${bindir}/*" 62FILES:${PN}-bin:remove = "${bindir}/*"
61FILES:${PN}-bin = "${bindir}/botan" 63FILES:${PN}-bin = "${bindir}/botan"