meta-openembedded/meta-oe/recipes-test/cunit/cunit_2.1-3.bb
Yi Zhao ef576a4701
cunit: inherit sourceforge-releases class
Inherit sourceforge-releases class to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version cunit
INFO: Current version: 2.1-3
INFO: Latest version:

After the patch:
$ devtool latest-version cunit
INFO: Current version: 2.1-3
INFO: Latest version: 2.1-3

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-12 09:38:58 -08:00

37 lines
1.2 KiB
BlitzBasic

DESCRIPTION = "CUnit is a C framework for unit testing. Test output supports comandline and GUI results reporting"
HOMEPAGE = "http://cunit.sourceforge.net"
LICENSE = "LGPL-2.0-only"
SECTION = "libs"
LIC_FILES_CHKSUM = "file://COPYING;md5=7734aa853b85d6f935466f081490ddbb"
S = "${UNPACKDIR}/CUnit-${PV}"
SRC_URI = "${SOURCEFORGE_MIRROR}/project/cunit/CUnit/${PV}/CUnit-${PV}.tar.bz2 \
file://fixup-install-docdir.patch \
file://run-ptest \
"
SRC_URI[sha256sum] = "f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214"
UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/cunit/files/releases"
inherit autotools-brokensep ptest sourceforge-releases
EXTRA_OECONF = "--enable-memtrace --enable-automated --enable-basic --enable-console"
TESTBIN = "/CUnit/Sources/Test/test_cunit"
PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'test','', d)} \
"
PACKAGECONFIG[test] = "--enable-test,,,"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
install -m 0755 ${S}${TESTBIN} ${D}${PTEST_PATH}/tests/
}
FILES:${PN}-dev += "${datadir}/CUnit"
FILES:${PN}-doc += "${docdir}"
BBCLASSEXTEND = "native"