Skip to content

Sfabi28/push_swap_tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

push_swap Tester

Last Commit

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.

📁 1. Installation

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/" >> .gitignore

Ensure that the path is right and set a proper timeout time INSIDE the launch.sh file

⚙️ 2. Usage Commands


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).

📊 3. Results Legend


[OK]   : The output list is in order.
[KO]   : The output list is not in order.

Min: 3800 | Max: 4431 | Avg: 3956

Happy debugging!🖥️

🛠️ More 42 Tools

Explore my full suite of testers:

ft_printf get_next_line libft

About

A comprehensive Push_Swap Tester for 42 students. Includes strict tests, unit testing, and smart Valgrind memory leak checks.

Topics

Resources

Stars

11 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors