Add test script that does the actual testing
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 13 Oct 2023 13:07:21 +0000 (15:07 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 13 Oct 2023 13:07:21 +0000 (15:07 +0200)
commit4e996925727f2b43872fc70f5c59e64cdf638bde
treecceb34d31783bb460c3b2b173a3dfac4008cd4db
parent898d00738e9b38163d3ffa6e8528948b2a3e590f
Add test script that does the actual testing

Implement test script in bash that handles the testing logic.
Also change Makefile and src/main.c a little to accomodate the changes.
The test script handles the following functionality:
- Handle creation of correct results to compare with
- Recompile gnl functions for testing with different BUFFER_SIZE
- Run the tester executable on tests in test_files/
- Print the results of the test in color including the output of
valgrind and diff when necessary.
Makefile
src/main.c
test [new file with mode: 0755]