Clone the repo into your philosophers folder.
git clone https://github.com/dantonik/42-philosophers-tester.git
You must have the following file structure:
├─ philo/
│ ├─ *.*
│ ├─ 42-philosophers-tester/
│ │ ├─test.sh
Run ./test.sh when inside the repo's directory.
cd 42-philosophers-tester
./test.sh
You can add the path to your philo executable as an argument if your folder structure looks differently.
./test.sh /path/to/philo
[-i iterations]
./test.sh -i 10
[-t times_to_eat]
./test.sh -t 10
The output of your failed test(s) get saved in the 'fails' folder for further inspection.
A simple docker Valgrind setup.
cd docker
./build.sh
./run.sh
Experimental integration with a Philosophers Visualizer.
Because the Lazy Philosophers Tester is a bit tedious and only semiautomatic.
Introduction to Parallel Computing
- Leak checking
- Visualizer
- Data race checking
- Death lock checking
- Wiki How-To Philo