Minimalistic philosopher tester made in bash script
Put the tester next to your executable and run the tester with :
bash tester.sh
or run this command if you don't want to download the repo:
bash <(wget -qO- https://raw.githubusercontent.com/Haletran/42_philosopher_tester/main/tester.sh)
If your printing message aren't these one the tester is going to put KO :
-> TIMESTAMP NB_OF_PHILO died
-> TIMESTAMP NB_OF_PHILO is eating
-> TIMESTAMP NB_OF_PHILO is sleeping
-> TIMESTAMP NB_OF_PHILO is thinking
If you want to add tests, just add a line in the corresponding parts.
Exemple if you want to add a test that check if the simulation runs forever, add this :
#TEST_NAME $TIMEOUT ARGS
living_test $TIMEOUT 5 800 200 200
This project is licensed under the MIT License