Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding rapidcheck package #22528

Merged
merged 19 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions recipes/rapidcheck/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
setlocal EnableDelayedExpansion

:: Make a build folder and change to it.
mkdir build
cd build

cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
-DBUILD_SHARED_LIBS=ON ^
..


if errorlevel 1 exit 1

:: Build!
nmake
if errorlevel 1 exit 1

:: Install!
nmake install
if errorlevel 1 exit 1
9 changes: 9 additions & 0 deletions recipes/rapidcheck/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!bin/bash
mkdir build
cd build
cmake \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
..
make
make install
54 changes: 54 additions & 0 deletions recipes/rapidcheck/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{% set name = "rapdidcheck" %}
{% set version = "2023.4.13" %}

package:
name: {{ name|lower }}
version: {{ version }}


# use github url for now since
# there are no tags / releases yet
source:
git_url: https://github.com/emil-e/rapidcheck
git_rev: a5724ea5b0b00147109b0605c377f1e54c353ba2
git_depth: 1

build:
number: 0

requirements:
build:
- make # [unix]
- {{ compiler('cxx') }}
- cmake

test:
commands:
- test -e ${PREFIX}/include/rapidcheck.h # [unix]
- test -e ${PREFIX}/include/rapidcheck/Show.hpp # [unix]
- test -e ${PREFIX}/share/rapidcheck/cmake/rapidcheckConfig.cmake # [unix]
- test -e ${PREFIX}/lib/librapidcheck.so # [linux]
- if not exist %LIBRARY_PREFIX%\include\rapidcheck.h (exit 1) # [win]



about:
home: https://github.com/emil-e/rapidcheck
summary: 'RapidCheck is a C++ framework for property based testing inspired by QuickCheck and other similar frameworks.'
description: |
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.

license: BSD-3-Clause
license_family: BSD
license_file: LICENSE.md
doc_url: https://github.com/emil-e/rapidcheck/blob/master/doc/user_guide.md
dev_url: https://github.com/emil-e/rapidcheck

extra:
recipe-maintainers:
- DerThorsten