A comprehensive and strict tester for the 42 push_swap project. It supports both Mandatory and Bonus parts, includes memory leak detection via Valgrind, and generates detailed logs for debugging.
Ensure that the folder of this tester (push_swap_tester) is located INSIDE the root of your push_swap project.
Correct Directory Structure:
/push_swap_root
├── Makefile
├── push_swap.h
├── *.c (your source files)
└── push_swap_tester/ <--- YOU ARE HERE
├── .launch.sh
├── Makefile
├── README.md
├── CHANGELOG.md
└── checker
Important: To avoid accidentally committing the tester to your repository, add push_swap_tester/ to your .gitignore file:
echo "push_swap_tester/" >> .gitignoreEnsure that the path is right and set a proper timeout time INSIDE the launch.sh file
The tester supports different modes.
Command,Description
make ,Runs ALL tests (Mandatory + Valgrind).
make [100|500] ,Runs 20 tests on 100 or 500 numbers.
make [100|500] + n, Runs n tests on 100 or 500 numbers.
make m + n, Runs n tests on m numbers.
make b, Runs bonus part tests (make sure to have rule "bonus" in your makefile).
[OK] : The output list is in order.
[KO] : The output list is not in order.
Min: 3800 | Max: 4431 | Avg: 3956
Happy debugging!🖥️
Explore my full suite of testers: