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
- Host: GitHub
- URL: https://github.com/borisskert/criterion_playground
- Owner: borisskert
- License: apache-2.0
- Created: 2024-05-11T11:41:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-11T11:53:55.000Z (over 1 year ago)
- Last Synced: 2024-05-28T15:48:59.392Z (over 1 year ago)
- Topics: c, clang, cmake, cmakelists, criterion, criterion-tests
- Language: CMake
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```