Gyorgy Sarvari fe1b915f23
crossguid: add ptest support
Execution takes less than a second.

Sample output:

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-24T16:06
BEGIN: /usr/lib/crossguid/ptest
0d154108-445a-4d20-9d74-623eb15c0ebe
c79e3cdf-fe16-4a9c-bad2-0fadf5761d05
ac7f9a04-f63f-49ee-a95b-6020378bff6f
All tests passed!
PASS: crossguid-test
DURATION: 0
END: /usr/lib/crossguid/ptest
2025-12-24T16:06
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-24 13:18:30 -08:00

25 lines
807 B
BlitzBasic

# Copyright (C) 2017 Khem Raj <raj.khem@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "Lightweight cross platform C++ GUID/UUID library"
HOMEPAGE = "https://github.com/graeme-hill/crossguid"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1373274bc8d8001edc54933919f36f68"
DEPENDS += "util-linux"
SRCREV = "ca1bf4b810e2d188d04cb6286f957008ee1b7681"
SRC_URI = "git://github.com/graeme-hill/crossguid;protocol=https;branch=master \
file://run-ptest \
file://0001-include-missing-cstdint.patch"
inherit cmake ptest
do_install:append() {
sed -i -e 's|${STAGING_DIR_HOST}||g' ${D}${datadir}/crossguid/cmake/crossguid-config.cmake
}
do_install_ptest() {
install -D ${B}/crossguid-test ${D}${PTEST_PATH}/tests/crossguid-test
}