Files
Gyorgy Sarvari e735c00c42 function2: fix ptests
The recipe has inherited the ptest class, however it did not install
not execute any tests.

This change installs the tests and add a script to execute them.

The tests are quick, execution takes single digit seconds.

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

29 lines
863 B
BlitzBasic

SUMMARY = "Improved drop-in replacement for std::function"
DESCRIPTION = "Provides improved implementations of std::function."
HOMEPAGE = "https://naios.github.io/function2"
LICENSE = "BSL-1.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
SRCREV = "02ca99831de59c7c3a4b834789260253cace0ced"
PV .= "+git${SRCPV}"
SRC_URI += "gitsm://github.com/Naios/function2;branch=master;protocol=https \
file://run-ptest"
S = "${WORKDIR}/git"
inherit cmake
inherit ptest
# Installs some data to incorrect top-level /usr directory
do_install:append() {
mkdir -p ${D}/${datadir}/function2
mv ${D}/${prefix}/Readme.md ${D}/${datadir}/function2/
mv ${D}/${prefix}/LICENSE.txt ${D}/${datadir}/function2/
}
do_install_ptest(){
if [ -f ${B}/test/function2_tests ]; then
install ${B}/test/function2_tests ${D}${PTEST_PATH}/
fi
}