https://github.com/haletran/42_philosopher_tester
Minimalistic and easily modifiable tester for 42 philosophers project
https://github.com/haletran/42_philosopher_tester
Last synced: 4 days ago
JSON representation
Minimalistic and easily modifiable tester for 42 philosophers project
- Host: GitHub
- URL: https://github.com/haletran/42_philosopher_tester
- Owner: Haletran
- License: mit
- Created: 2024-05-03T15:33:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T17:27:54.000Z (almost 2 years ago)
- Last Synced: 2025-03-01T03:42:51.109Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 5.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 42_philosopher_tester


>Minimalistic philosopher tester made in bash script
## Usage
Put the tester next to your executable and run the tester with :
```bash
bash tester.sh
```
or run this command if you don't want to download the repo:
```bash
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
## 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 :
```bash
#TEST_NAME $TIMEOUT ARGS
living_test $TIMEOUT 5 800 200 200
```
## License
This project is licensed under the [MIT License](LICENSE)