This repo houses a discrete event simulation infrastructure
that uses cooperative threads (i.e., boost::context::continuation
).
Use CMake to build (defaults to a Release
build):
mkdir build ;
cd build ;
cmake -G Ninja -DCMAKE_BUILD_TYPE=[Release|Debug|RelWithDebInfo] .. ;
ninja
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 ;