added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,37 @@
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 = "${WORKDIR}/CUnit-${PV}"
SRC_URI = "${SOURCEFORGE_MIRROR}/project/cunit/CUnit/${PV}/CUnit-${PV}.tar.bz2 \
file://fixup-install-docdir.patch \
file://run-ptest \
"
SRC_URI[md5sum] = "b5f1a9f6093869c070c6e4a9450cc10c"
SRC_URI[sha256sum] = "f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214"
UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/cunit/files/releases"
inherit autotools-brokensep ptest
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"

View File

@@ -0,0 +1,36 @@
From: "Mike Holmes" <mike.holmes@linaro.org>
Date: Thu, 30 October 2014 16:21:03 -0500
Subject: [PATCH] fixup-install-docdir
The default configuration macros for CUnit install the documentation and
header files in locations not consistent with the OE filesystem layout.
So here we specify new locations which are consistent with OE filesystems.
Upstream-Status: Inappropriate - configuration for OE build environment
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
---
diff -uNr a/doc/headers/Makefile.am b/doc/headers/Makefile.am
--- a/doc/headers/Makefile.am 2014-10-30 22:06:29.704574162 +0100
+++ b/doc/headers/Makefile.am 2014-10-30 22:07:43.578524791 +0100
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-dochdrdir = $(prefix)/doc/@PACKAGE@/headers
+dochdrdir = $(docdir)/headers
INCLUDE_FILES = \
Automated.h \
diff -uNr a/doc/Makefile.am b/doc/Makefile.am
--- a/doc/Makefile.am 2014-10-30 22:06:29.704574162 +0100
+++ b/doc/Makefile.am 2014-10-30 22:07:01.461412166 +0100
@@ -1,7 +1,5 @@
## Process this file with automake to produce Makefile.in
-docdir = $(prefix)/doc/@PACKAGE@
-
doc_DATA = \
CUnit_doc.css \
error_handling.html \

View File

@@ -0,0 +1,19 @@
#!/bin/sh
ptestdir=$(dirname "$(readlink -f "$0")")
cd $ptestdir/tests
./test_cunit > cunit_test_out.tmp
echo "--- Test output ---"
cat cunit_test_out.tmp
echo ""
echo "--- ptest result ---"
grep "Failures: 0" cunit_test_out.tmp > /dev/null
if [ $? -eq 0 ]; then
echo "PASS: cunit"
else
echo "FAIL: cunit"
fi
rm -f cunit_test_out.tmp