Program which tests output and measures executing time.
Windows:
tester (program to be tested) (tests directory)
-a for analyzing mode (optional)
-h to hide fault informations in analyzing mode (optional)
-s to stop program after fault in classic mode or after analizing one test in analyzing mode (optional)
-i for tests folders that are split into in and out folders
Linux:
./tester (program to be tested) (tests directory)
-a for analyzing mode (optional)
-h to hide fault informations in analyzing mode (optional)
-s to stop program after fault in classic mode or after analizing one test in analyzing mode (optional)
-i for tests folders that are split into in and out folders
Windows:
tester example\add.exe example\tests
Linux:
./tester example/add example/tests
This mode checks each line of output separately and prints how many lines were correct. Usefull for tasks such as https://szkopul.edu.pl/problemset/problem/v2Y2_UW56ENMcbwP22tkTb7a/site/?key=statement.
g++ tester.cpp -o tester