42/gnl_tester.git
2 years agoSplit a line to comply with the Norm
Lukas Jiriste [Tue, 24 Oct 2023 10:12:54 +0000 (12:12 +0200)]
Split a line to comply with the Norm

2 years agoMake valgrind quiet. Reorder tests by size.
Lukas Jiriste [Fri, 13 Oct 2023 13:46:58 +0000 (15:46 +0200)]
Make valgrind quiet. Reorder tests by size.

2 years agoFix memory leak - not freeing string holding path
Lukas Jiriste [Fri, 13 Oct 2023 13:39:06 +0000 (15:39 +0200)]
Fix memory leak - not freeing string holding path

2 years agoAdd .gitignore to ignore files created by testing
Lukas Jiriste [Fri, 13 Oct 2023 13:29:16 +0000 (15:29 +0200)]
Add .gitignore to ignore files created by testing

2 years agoAdd a couple of test files.
Lukas Jiriste [Fri, 13 Oct 2023 13:23:54 +0000 (15:23 +0200)]
Add a couple of test files.

2 years agoAdd test script that does the actual testing
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.

2 years agoCreate include dir for main.h and patch Makefile acordingly.
Lukas Jiriste [Fri, 13 Oct 2023 09:51:50 +0000 (11:51 +0200)]
Create include dir for main.h and patch Makefile acordingly.

2 years agoChange Makefile to create OBJDIR when it's missing.
Lukas Jiriste [Thu, 12 Oct 2023 13:57:35 +0000 (15:57 +0200)]
Change Makefile to create OBJDIR when it's missing.

2 years agoCreate the insides of Makefile.
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.

2 years agoRemove Libft for it not to collide with get_next_line defintion of linked list.
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.

2 years agoRepaired minor problems in main.
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)

2 years agoChanged the url Libft to use domain name instead of url.
Lukas Jiriste [Wed, 11 Oct 2023 12:26:08 +0000 (14:26 +0200)]
Changed the url Libft to use domain name instead of url.

2 years agoJust some bare bones (not even all) of the project.
Lukas Jiriste [Fri, 29 Sep 2023 13:51:03 +0000 (15:51 +0200)]
Just some bare bones (not even all) of the project.