Lukas Jiriste [Thu, 26 Oct 2023 14:10:00 +0000 (16:10 +0200)]
Solve the generation of correct bonus result
Create a new script InterleaveFiles for merging files together. The
resulting file is the same as one produced by tester with correct
get_next_line.
Rename test file 5 to 6 and create new test 5 (complicated to preserve
order of files from smallest to largest).
Lukas Jiriste [Wed, 25 Oct 2023 13:42:51 +0000 (15:42 +0200)]
Change test to accept options, main to test multiple files
Change everything to make main merge input files (a little like paste).
This change is made to test bonus part - using get_next_line with
multiple files.
Move logic to produce correct files from test script to Makefile.
Create logic to enable testing of all(a), mandatory(m) or bonus(b)
parts.
Remove dependency on a function available only through get_next_line* as
that may (and probably would) be part of only my implementation. Add
functions that substitute this function.
Update .gitignore to ignore more temporary directories and files that
are created by running test script.
LOGIC FOR PRODUCING THE CORRECT OUTPUT FOR BONUS PART NEEDS TO BE
IMPLEMENTED IN THE FOLLOWING COMMIT.
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)