An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# 42_philosopher_tester
![Size](https://img.shields.io/github/repo-size/Haletran/42_philosopher_tester)
![Open Source](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)

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

>
>
> 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 :
```bash
#TEST_NAME $TIMEOUT ARGS
living_test $TIMEOUT 5 800 200 200
```

## License

This project is licensed under the [MIT License](LICENSE)