Files
meta-openembedded/meta-oe/recipes-support/cli11/cli11_1.9.1.bb
T
Gyorgy Sarvari c1171b8db7 cli11: fix ptests
The recipe inherits the ptest class, however it doesn't install
the actual tests, nor executes them.

This change installs the tests, and add a run-ptest script to
execute them also.

The tests are fairly quick, it takes single digit seconds on my
machine to execute.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
2025-10-20 08:52:52 +02:00

27 lines
805 B
BlitzBasic

SUMMARY = "C++11 command line parser"
DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface."
HOMEPAGE = "https://github.com/CLIUtils/CLI11"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b73927b18d5c6cd8d2ed28a6ad539733"
SRCREV = "5cb3efabce007c3a0230e4cc2e27da491c646b6c"
PV .= "+git${SRCPV}"
SRC_URI += "gitsm://github.com/CLIUtils/CLI11;branch=v1;protocol=https \
file://run-ptest"
S = "${WORKDIR}/git"
inherit cmake
inherit ptest
# cli11 is a header only C++ library, so the main package will be empty.
RDEPENDS:${PN}-dev = ""
RDEPENDS:${PN}-ptest = ""
do_install_ptest(){
install -d ${D}${PTEST_PATH}/tests
for t in `ls ${B}/tests/*Test`; do
install $t ${D}${PTEST_PATH}/tests/
done
}