ravel
Deterministic simulation testing for C++. Seed a bug, replay it exact.
Loading...
Searching...
No Matches
sweep.hpp
1#pragma once
2
3#include <cstdint>
4#include <iosfwd>
5#include <string>
6#include <vector>
7
8#include "ravel/simulation.hpp"
9
10namespace ravel {
11
18 std::uint64_t seeds = 1000;
19 std::string trace_dir = "ravel-traces";
21};
22
47int run_sweep(std::ostream& out, const std::vector<std::string>& args,
48 const SimulationSetup& setup, const SweepDefaults& defaults = {},
49 const std::string& program = "test");
50
51int run_sweep_main(int argc, char** argv, const SimulationSetup& setup,
52 const SweepDefaults& defaults = {});
53
54} // namespace ravel
Options for one run. Every field has a sensible default.
Definition simulation.hpp:36
Defaults for the command line that run_sweep gives your test program.
Definition sweep.hpp:16
std::string trace_dir
Where failures leave their trace and reproducer.
Definition sweep.hpp:19
std::uint64_t seeds
How many seeds to run when –seeds is not given.
Definition sweep.hpp:18
SimulationOptions simulation
For example a time_limit.
Definition sweep.hpp:20