pkgsrc/devel/rapidcheck/Makefile
nikita 9f17731274 rapidcheck: import as devel/rapidcheck version 0.0.0.20220314
QuickCheck clone for C++ with the goal of being simple to use with as little
boilerplate as possible.

RapidCheck is a C++ framework for property based testing inspired by QuickCheck
and other similar frameworks. In property based testing, you state facts about
your code that given certain precondition should always be true. RapidCheck then
generates random test data to try and find a case for which the property doesn't
hold. If such a case is found, RapidCheck tries to find the smallest case (for
some definition of smallest) for which the property is still false and then
displays this as a counterexample. For example, if the input is an integer,
RapidCheck tries to find the smallest integer for which the property is false.
2023-05-03 16:56:31 +00:00

35 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2023/05/03 16:56:31 nikita Exp $
DISTNAME= rapidcheck-0.0.0.20220314
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=emil-e/}
GITHUB_PROJECT= rapidcheck
GITHUB_TAG= 8fafda42e732164db58003e542196e94a28481f9
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= QuickCheck clone for C++
HOMEPAGE= https://github.com/emil-e/rapidcheck
LICENSE= 2-clause-bsd
TEST_DEPENDS= catch2-[0-9]*:../../devel/catch2
USE_LANGUAGES+= c c++11
USE_TOOLS+= cmake
#CXXFLAGS+= -I${WRKSRC}/extras/catch/include # only to fix tests (rapidcheck/catch.h)
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+= -DCMAKE_POSITION_INDEPENDENT_CODE=True
CMAKE_ARGS+= -DRC_ENABLE_EXAMPLES=Off
CMAKE_ARGS+= -DRC_ENABLE_TESTS=Off
CMAKE_ARGS+= -DRC_INSTALL_ALL_EXTRAS=On
#do-test: # broken: https://github.com/emil-e/rapidcheck/issues/242
# @cd ${BUILD_WRKSRC} && \
# ${SETENV} ${CONFIGURE_ENV} cmake ${CMAKE_ARGS} -DRC_ENABLE_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH:Q} && \
# ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} ${BUILD_TARGET} && \
# ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test
.include "../../devel/cmake/build.mk"
.include "../../mk/bsd.pkg.mk"