Skip to content
Snippets Groups Projects

Running tests

make test
# or pytest, but you must prepare your env, run redis...

How it works?

  1. pytest generates combinations of test input (code in conftest.py)
  2. for each combination of inputs: (code in test_runner.py)
  3. pytest generates a robin input file
  4. pytest generates batsim and batsched input files if needed
  5. pytest executes robin or robintest on the generated file

Running a specific test

You can manually rerun a test with robin:

robin test-instances/FAILING-TEST.yaml

You can also run batsim and batsched in different terminals:

# feel free to hack — e.g., prepend commands with gdb, valgrind...
./test-out/FAILING-TEST/cmd/batsim.bash
./test-out/FAILING-TEST/cmd/sched.bash