Skip to content

mfunyu/tester_philosophers

Repository files navigation

tester_philosophers

Screen Shot 2022-05-25 at 13 20 48

⚠️ Important notes :

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

./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]