1 stable release
new 1.0.3 | Oct 28, 2024 |
---|
#278 in Testing
440 downloads per month
8KB
176 lines
cppcheckr
A smol cpp file tester for competetive programing, runing tests from a directory in .in and .out format :)
usage
cppcheckr -a algo -i testy/inpfolder/test -o /testy/outfolder/test -b 0 -e 5000 -n 500
will:
- compile file algo.cpp
- run the resoulting program with input from folder testy/inpfolder and compare it to outputs from folder testy/outfolder
- Where the name of the tests look like: testy/inpfolder/test{i}.in and testy/outfolder/test{i}.out
- i being a number between 0 and 5000 (remove {} braces)
- the program will report every 500 tests to show you it hasn't halted
- test the speed of those programs ( so you can see how well your optimizations work :) )
- You can pass the argument -p 1 to make sure all tests pass :)
more info in cppchecker -h
Dependencies
~3–13MB
~93K SLoC