diff options
| -rw-r--r-- | meta-oe/recipes-support/c-ares/c-ares/run-ptest | 7 | ||||
| -rw-r--r-- | meta-oe/recipes-support/c-ares/c-ares_1.24.0.bb | 19 |
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 | |||
| 3 | if ./arestest; then | ||
| 4 | echo "PASS: c-ares" | ||
| 5 | else | ||
| 6 | echo "FAIL: c-ares" | ||
| 7 | fi | ||
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" | |||
| 5 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fdbc58a6da11a9f68aa73c453818decc" | 6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fdbc58a6da11a9f68aa73c453818decc" |
| 7 | 7 | ||
| 8 | SRC_URI = "git://github.com/c-ares/c-ares.git;branch=main;protocol=https" | 8 | SRC_URI = "https://c-ares.org/download/c-ares-1.24.0.tar.gz \ |
| 9 | SRCREV = "972f456f2808b4e4b1730c90ab506f6af5f4c725" | 9 | file://run-ptest" |
| 10 | SRC_URI[sha256sum] = "c517de6d5ac9cd55a9b72c1541c3e25b84588421817b5f092850ac09a8df5103" | ||
| 10 | 11 | ||
| 11 | UPSTREAM_CHECK_GITTAGREGEX = "cares-(?P<pver>\d+_(\d_?)+)" | 12 | PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" |
| 13 | PACKAGECONFIG[manpages] = "" | ||
| 14 | PACKAGECONFIG[tests] = "-DCARES_BUILD_TESTS=ON,-DCARES_BUILD_TESTS=OFF,googletest" | ||
| 12 | 15 | ||
| 13 | S = "${WORKDIR}/git" | 16 | inherit cmake manpages pkgconfig ptest |
| 14 | 17 | ||
| 15 | inherit cmake pkgconfig | 18 | EXTRA_OECMAKE = "-DCARES_STATIC=${@ 'ON' if d.getVar('DISABLE_STATIC') == '' else 'OFF' }" |
| 19 | |||
| 20 | do_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 | ||
| 17 | PACKAGE_BEFORE_PN = "${PN}-utils" | 26 | PACKAGE_BEFORE_PN = "${PN}-utils" |
| 18 | 27 | ||
