blob: 9a0c18dee471862a8a8be31953ba3e143f402626 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "CUnit is a C framework for unit testing. Test output supports comandline and GUI results reporting"
2HOMEPAGE = "http://cunit.sourceforge.net"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "LGPL-2.0-only"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004SECTION = "libs"
5LIC_FILES_CHKSUM = "file://COPYING;md5=7734aa853b85d6f935466f081490ddbb"
6
7S = "${WORKDIR}/CUnit-${PV}"
8
9SRC_URI = "${SOURCEFORGE_MIRROR}/project/cunit/CUnit/${PV}/CUnit-${PV}.tar.bz2 \
Andrew Geisslerd221e032020-07-10 16:13:21 -050010 file://fixup-install-docdir.patch \
11 file://run-ptest \
12 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013SRC_URI[md5sum] = "b5f1a9f6093869c070c6e4a9450cc10c"
14SRC_URI[sha256sum] = "f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214"
15
Andrew Geissler82c905d2020-04-13 13:39:40 -050016UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/cunit/files/releases"
17
Andrew Geisslerd221e032020-07-10 16:13:21 -050018inherit autotools-brokensep remove-libtool ptest
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019
20EXTRA_OECONF = "--enable-memtrace --enable-automated --enable-basic --enable-console"
21
Andrew Geisslerd221e032020-07-10 16:13:21 -050022TESTBIN = "/CUnit/Sources/Test/test_cunit"
23
24PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'test','', d)} \
25 "
26
27PACKAGECONFIG[test] = "--enable-test,,,"
28
29do_install_ptest() {
30 install -d ${D}${PTEST_PATH}/tests
31 install -m 0755 ${S}${TESTBIN} ${D}${PTEST_PATH}/tests/
32}
33
Patrick Williams213cb262021-08-07 19:21:33 -050034FILES:${PN}-dev += "${datadir}/CUnit"
35FILES:${PN}-doc += "${docdir}"
Brad Bishop2f973922019-11-11 07:58:48 -050036
37BBCLASSEXTEND = "native"