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

https://github.com/mfunyu/tester_philosophers

Tester for level 3 project "philosophers" @42Tokyo
https://github.com/mfunyu/tester_philosophers

42cursus dining-philosophers-problem tester

Last synced: 29 days ago
JSON representation

Tester for level 3 project "philosophers" @42Tokyo

Awesome Lists containing this project

README

          

# tester_philosophers
Screen Shot 2022-05-25 at 13 20 48

> ⚠️ Important notes :
> - Colored log format may not be supported for some tests.
> - Failing this test does not necessary mean your philosopher fails to meet the requirements.

> Reference: https://discord.com/channels/691903146909237289/691908977918738453/881739363719979009 (Private link for 42Tokyo students)

# Installation
```
git clone https://github.com/mfunyu/tester_philosophers.git &&
python3 -m pip install pyparsing
```
### Directory structure
```
── philosophers
   ├── Makefile
   ├── includes
   ├── srcs
   └── tester_philosophers
```

# Usage
### run all tests
```shell
./tester_philosophers/test.sh
```
### display help
```
$> ./tester_philosophers/test.sh help
Call test.sh with a cmd arg to exec single test
./test.sh arg: [check wrong arguments]
./test.sh time: [check chronology of timestamps]
./test.sh retval: [check return values]
./test.sh advanced: [visualize fork and check for more detailded conditions]
```
### run advanced test

- add command-line arguments as the same order from `./philo`
```
./tester_philosophers/run.sh [philo_nbs] [death_time] [eat_time] [sleep_time]
```