summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/c-ares/c-ares/run-ptest7
-rw-r--r--meta-oe/recipes-support/c-ares/c-ares_1.24.0.bb19
2 files changed, 21 insertions, 5 deletions
diff --git a/meta-oe/recipes-support/c-ares/c-ares/run-ptest b/meta-oe/recipes-support/c-ares/c-ares/run-ptest
new file mode 100644
index 0000000000..15971dec05
--- /dev/null
+++ b/meta-oe/recipes-support/c-ares/c-ares/run-ptest
@@ -0,0 +1,7 @@
1#!/bin/sh
2
3if ./arestest; then
4 echo "PASS: c-ares"
5else
6 echo "FAIL: c-ares"
7fi
diff --git a/meta-oe/recipes-support/c-ares/c-ares_1.24.0.bb b/meta-oe/recipes-support/c-ares/c-ares_1.24.0.bb
index 2171002aa9..3b3b2b83fe 100644
--- a/meta-oe/recipes-support/c-ares/c-ares_1.24.0.bb
+++ b/meta-oe/recipes-support/c-ares/c-ares_1.24.0.bb
@@ -5,14 +5,23 @@ SECTION = "libs"
5LICENSE = "MIT" 5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fdbc58a6da11a9f68aa73c453818decc" 6LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fdbc58a6da11a9f68aa73c453818decc"
7 7
8SRC_URI = "git://github.com/c-ares/c-ares.git;branch=main;protocol=https" 8SRC_URI = "https://c-ares.org/download/c-ares-1.24.0.tar.gz \
9SRCREV = "972f456f2808b4e4b1730c90ab506f6af5f4c725" 9 file://run-ptest"
10SRC_URI[sha256sum] = "c517de6d5ac9cd55a9b72c1541c3e25b84588421817b5f092850ac09a8df5103"
10 11
11UPSTREAM_CHECK_GITTAGREGEX = "cares-(?P<pver>\d+_(\d_?)+)" 12PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
13PACKAGECONFIG[manpages] = ""
14PACKAGECONFIG[tests] = "-DCARES_BUILD_TESTS=ON,-DCARES_BUILD_TESTS=OFF,googletest"
12 15
13S = "${WORKDIR}/git" 16inherit cmake manpages pkgconfig ptest
14 17
15inherit cmake pkgconfig 18EXTRA_OECMAKE = "-DCARES_STATIC=${@ 'ON' if d.getVar('DISABLE_STATIC') == '' else 'OFF' }"
19
20do_install_ptest () {
21 install -d ${D}${PTEST_PATH}
22 install -m 0755 ${B}/bin/arestest ${D}${PTEST_PATH}
23 install -m 0755 ${WORKDIR}/run-ptest ${D}${PTEST_PATH}
24}
16 25
17PACKAGE_BEFORE_PN = "${PN}-utils" 26PACKAGE_BEFORE_PN = "${PN}-utils"
18 27