An open API service indexing awesome lists of open source software.

https://github.com/borisskert/criterion_playground

Little showcase how to include Criterion testing library in a CMake project
https://github.com/borisskert/criterion_playground

c clang cmake cmakelists criterion criterion-tests

Last synced: 7 months ago
JSON representation

Little showcase how to include Criterion testing library in a CMake project

Awesome Lists containing this project

README

          

# Criterion Playground

This repo shows a simple showcase how to use [Criterion](https://github.com/Snaipe/Criterion) to test C code managed by
[Cmake](https://cmake.org/).

## Setup

### Prerequisites

You need to install following tools/packages:

* gcc
* cmake
* clang
* meson/ninja

### Compile

```bash
cd build
cmake ..
cmake --build .
```

### Run tests

```bash
cd build
./tests/criterion_playground_tests
```