#cpp #tester #programing #file #compile #folder #competetive

app cppcheckr

cppcheckr, a cpp file tester for competetive programing

3 stable releases

new 1.1.3 Nov 18, 2024
1.1.2 Nov 17, 2024
1.1.0 Nov 16, 2024
1.0.5 Nov 16, 2024
1.0.3 Oct 28, 2024

#189 in Testing

Download history 339/week @ 2024-10-28 5/week @ 2024-11-04 259/week @ 2024-11-11

603 downloads per month

MIT license

9KB
180 lines

cppcheckr

A small cpp file tester for competitive programing, running tests from a directory in .in and .out format :)

usage

cppcheckr -a (path to algorithm) -i testy/input_folder/test_prefix -o /testy/output_folder/test_prefix -b (number of first test) -e (number of last test )

will:

  • compile file (path to algorithm).cpp
  • run the program with input from folder testy/input_folder and compare it to outputs from folder testy/output_folder
    • Where the name of the tests look like:
      • testy/input_folder/test{i}.in
      • testy/outpu_folder/test{i}.out
    • i being a number between (number of first test) and (number of last test)
  • 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 :) (but quality will not be guarantied)

more info in cppchecker -h

Dependencies

~3–13MB
~93K SLoC