Skip to content

cberganz/Push_swap_tester

Repository files navigation

Push_swap_tester

A bash tester for the Push_swap project of 42 school

Usage

Get inside your push_swap path and :

git clone https://github.com/cberganz/Push_swap_tester.git
cd push_swap_tester
bash push_swap_tester.sh

Help menu

Display help menu :

bash push_swap_tester.sh --help

Use another checker / change checker path

By default the script uses the linux checker with the path ../checker_linux. You can change the default checker path to the MacOS Checker or to your own checker with :

bash push_swap_tester.sh [optional - checker_path]

If you use the MacOS checker

bash push_swap_tester.sh ../checker_Mac

If you use your personal checker named "checker"

bash push_swap_tester.sh ../checker

Specify your stack size and number of tests

You can run a test with the settings of your choice :

bash push_swap_tester.sh [optional - checker_path] [optional - stack_size] [optional - number_of_tests - default=1]

Range mode

Your can run a range test with the range of your choice :

bash push_swap_tester.sh --range [optional - checker_path] [mandatory - range_begin] [mandatory - range_end]

Memory check mode

Use valgrind to run a memory check with the stack size specified (works only on linux) :

bash push_swap_tester.sh --memory [mandatory - stack_size]

About

My bash tester for Push_swap project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages