Toster

Crates.io Crates.io Crates.io

A simple-as-toast tester for C++ solutions to competitive programming exercises

Usage

``` Usage: toster [OPTIONS]

Arguments: The name of the file containing the source code or the executable you want to test

Options: -i, --in Input directory [default: in] --in-ext Input file extension [default: .in] -o, --out Output directory [default: out] --out-ext Output file extension [default: .out] --io The input and output directory (sets both -i and -o at once) -t, --timeout The number of seconds after which a test or generation times out if the program does not return [default: 5] --compile-timeout The number of seconds after which compilation times out if it doesn't finish [default: 10] -c, --compile-command The command used to compile the file. gets replaced with the path to the source code file, is the executable output location [default: "g++ -std=c++17 -O3 -static -o "] -g, --generate Makes the tester generate output files in the output directory instead of comparing the program's output with the files in the output directory -h, --help Print help information -V, --version Print version information ```

License

Toster is licensed under the MIT Licence