Lukas Jiriste [Tue, 24 Oct 2023 10:14:11 +0000 (12:14 +0200)]
Add norminette check and minor QoL changes
Add norminette check as the first thing that runs with test.
Use norminette check to exit test script when the check fails.
Use make exit status to exit test script when compilation fails.
Add -fdiagnostics-color=always flag for compiler errors to retain their
formatting when redirected for later output.
Lukas Jiriste [Fri, 13 Oct 2023 13:07:21 +0000 (15:07 +0200)]
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.
Lukas Jiriste [Thu, 12 Oct 2023 11:14:17 +0000 (13:14 +0200)]
Remove Libft for it not to collide with get_next_line defintion of linked list.
Move required files from Libft to src/.
Change header file main.h accordingly.
Lukas Jiriste [Wed, 11 Oct 2023 16:19:23 +0000 (18:19 +0200)]
Repaired minor problems in main.
Created main.h as Libft has a collision with get_next_line
in linked list definition.
In future commits, Libft has to be integrated directly in this project.
(Or some equivalent action has to be done)