This repository was archived by the owner on Aug 14, 2025. It is now read-only.
Repository files navigation
git clone https://github.com/Arkhavy/Arktest_Push_Swap.git where your binary is located
Make sure your checker and your binary exist
Rename the checker in the script if needed (default is checker_Mac)
cd Arktest_Push_Swap
./arktest.sh
Brace yourself
Option
Name
Description
-h
Help
Display help and exit.
-i
Info
Display informations about results of tests and exit.
-p
Parsing tests
Do parsing tests (42 tests)
-s
Small tests
Do 3 and 5 digits tests (126 tests)
-m
Medium tests
Do 100 digits tests (500 tests)
-l
Large tests
Do 500 digits tests (500 tests)
-os
Opt and small tests
Do Small tests + 4, 6, 7, 8 and 9 digits tests (2370 tests)
-om
Opt and medium tests
Do Medium tests + 10, 25, 50 and 75 digits tests (2500 tests)
-ol
Opt and large tests
Do Large tests + 200, 300, 400 digits tests (2000 tests)
If you launch the script without flags, it will do all tests (Currently 6912 tests, it might take some time)
You can use different flags to do only some tests and not all of them !
You can use multiple flags at the same time !
./arktest.sh -p -s -ol as example will then do parsing, 3, 5, 200, 300, 400, 500 digits tests !
There is a trace and additional infos !
If you have any Checker KOs, Checker Errors, Timeout, TMIs, Leaks, Crash , it will be listed in the trace.txt created at the start of the script !
Every series of test has its own best, average and worst displayed at the end of each series.
You can then see which line gave you the best or worst result and the average of the whole batch of test !
The script is currently a Work In Progress
If the script displays anything weird, you might display something weird yourself with your program (if not, please contact me)
There is currently 6912 tests done, hope your body is ready (and your terminal too)
Norm test, leak tests, crash tests and timeout tests are currently non existent, they will be added in the future
Since timeout test does not exist yet, if the script get stuck in an infinite loop , it's your fault !
Any feedback is appreciated at ljohnson@student.42lyon.fr , any idea for more features too !
About
Working Push Swap tester
Topics
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.