Skip to content

Minimalistic and easily modifiable tester for 42 philosophers project

License

Notifications You must be signed in to change notification settings

Haletran/42_philosopher_tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

42_philosopher_tester

Size Open Source

Minimalistic philosopher tester made in bash script

Usage

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)
Warning

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

Add tests

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

License

This project is licensed under the MIT License

About

Minimalistic and easily modifiable tester for 42 philosophers project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages