Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 732 Bytes

File metadata and controls

34 lines (26 loc) · 732 Bytes

twill

This repo houses a discrete event simulation infrastructure that uses cooperative threads (i.e., boost::context::continuation).

Build

Use CMake to build (defaults to a Release build):

mkdir build ;
cd build ;
cmake -G Ninja -DCMAKE_BUILD_TYPE=[Release|Debug|RelWithDebInfo] .. ;
ninja

Tests

Unit tests are available in tests/ and are built along with the rest of the source code.

To run tests, use ctest:

cd build ;
ctest -V --output-on-failure ; # You can view the specific commands that `ctest` runs in the console output.

To add a new test, simply add a .cpp file to tests/ that has a main method. Then, run:

cd build ;
ninja ;
ctest -V --output-on-failure ;