Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "CUnit is a C framework for unit testing. Test output supports comandline and GUI results reporting" |
| 2 | HOMEPAGE = "http://cunit.sourceforge.net" |
| 3 | LICENSE = "LGPL-2.0" |
| 4 | SECTION = "libs" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=7734aa853b85d6f935466f081490ddbb" |
| 6 | |
| 7 | S = "${WORKDIR}/CUnit-${PV}" |
| 8 | |
| 9 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/cunit/CUnit/${PV}/CUnit-${PV}.tar.bz2 \ |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame] | 10 | file://fixup-install-docdir.patch \ |
| 11 | file://run-ptest \ |
| 12 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 13 | SRC_URI[md5sum] = "b5f1a9f6093869c070c6e4a9450cc10c" |
| 14 | SRC_URI[sha256sum] = "f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214" |
| 15 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/cunit/files/releases" |
| 17 | |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame] | 18 | inherit autotools-brokensep remove-libtool ptest |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | |
| 20 | EXTRA_OECONF = "--enable-memtrace --enable-automated --enable-basic --enable-console" |
| 21 | |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame] | 22 | TESTBIN = "/CUnit/Sources/Test/test_cunit" |
| 23 | |
| 24 | PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'test','', d)} \ |
| 25 | " |
| 26 | |
| 27 | PACKAGECONFIG[test] = "--enable-test,,," |
| 28 | |
| 29 | do_install_ptest() { |
| 30 | install -d ${D}${PTEST_PATH}/tests |
| 31 | install -m 0755 ${S}${TESTBIN} ${D}${PTEST_PATH}/tests/ |
| 32 | } |
| 33 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 34 | FILES:${PN}-dev += "${datadir}/CUnit" |
| 35 | FILES:${PN}-doc += "${docdir}" |
Brad Bishop | 2f97392 | 2019-11-11 07:58:48 -0500 | [diff] [blame] | 36 | |
| 37 | BBCLASSEXTEND = "native" |