First, go to the root of your repository, which is where we can find your Makefile and do
git clone https://github.com/LeoFu9487/push_swap_tester.git && cd push_swap_tester
To see if you pass the parsing test (ERROR_TEST), identity test, and small stack test (size 3 and 5), run
bash basic_test.sh
If you want to see the test cases, check trace_basic
After that, you can do medium and big stack test with this command
bash loop.sh <stack size> <loop times>
For example, this is the result of the following command
bash loop.sh 100 10
And you can find those generated test cases and the output of your program in trace_loop
To visualize how your program sorts numbers
bash debug.sh <numbers>
This is the result of the following command
bash debug.sh 9 4 8 7
To generate random numbers and visualize how your program sorts them, run
bash debug.sh random <stack size>
This is the result of the following command
bash debug.sh random 10
To generate a permutation of numbers from 0 to n-1
bash debug.sh clean <stack size>
this is the result of the following command
bash debug.sh clean 10
OK : Answer Correct
KO : Wrong Answer
TLE : Time Limit Exceeded, please check if there is an infinite loop in your program (or you can edit the variable TIME_LIMIT
in *.sh file)
ERROR : Unknown Instructions
leaks command not found : can't test your memory with command leaks
(If you're using MacOS but still receiving this, remove -fsanitize=address
flag in your Makefile )
bash clean.sh
can remove every test case and output file
or DM me on the slack