summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Lukas Jiriste [Fri, 27 Oct 2023 09:55:41 +0000 (11:55 +0200)]
Repair stdin functionality, move stdin test to others
Move stdin test to other tests so it runs for every BUFFER_SIZE tested.
Compare correct files while testing (correct/.stdin instead of correct/-).
Add missing " in Makefile.
Lukas Jiriste [Fri, 27 Oct 2023 09:32:48 +0000 (11:32 +0200)]
Add test for stdin
Add .stdin test, change main.c to be able to accept stdin, change test
to redirect when stdin is tested.
Improve Makefile, test.
Lukas Jiriste [Thu, 26 Oct 2023 14:14:07 +0000 (16:14 +0200)]
Change default dir of GNL to parent dir
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:29:21 +0000 (12:29 +0200)]
Add a very simple README file.
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 [Tue, 24 Oct 2023 10:12:54 +0000 (12:12 +0200)]
Split a line to comply with the Norm
Lukas Jiriste [Fri, 13 Oct 2023 13:46:58 +0000 (15:46 +0200)]
Make valgrind quiet. Reorder tests by size.
Lukas Jiriste [Fri, 13 Oct 2023 13:39:06 +0000 (15:39 +0200)]
Fix memory leak - not freeing string holding path
Lukas Jiriste [Fri, 13 Oct 2023 13:29:16 +0000 (15:29 +0200)]
Add .gitignore to ignore files created by testing
Lukas Jiriste [Fri, 13 Oct 2023 13:23:54 +0000 (15:23 +0200)]
Add a couple of test files.
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 [Fri, 13 Oct 2023 09:51:50 +0000 (11:51 +0200)]
Create include dir for main.h and patch Makefile acordingly.
Lukas Jiriste [Thu, 12 Oct 2023 13:57:35 +0000 (15:57 +0200)]
Change Makefile to create OBJDIR when it's missing.
Lukas Jiriste [Thu, 12 Oct 2023 13:50:24 +0000 (15:50 +0200)]
Create the insides of Makefile.
Repair permissions of files reated in main.
Repair crash on EOF returning NULL to line.
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)
Lukas Jiriste [Wed, 11 Oct 2023 12:26:08 +0000 (14:26 +0200)]
Changed the url Libft to use domain name instead of url.
Lukas Jiriste [Fri, 29 Sep 2023 13:51:03 +0000 (15:51 +0200)]
Just some bare bones (not even all) of the project.