A bash tester for the Push_swap project of 42 school
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
Display help menu :
bash push_swap_tester.sh --help
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
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]
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]
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]