https://github.com/mpgn/mnk-game-test
Automatic test of the mnk-game
https://github.com/mpgn/mnk-game-test
Last synced: 9 months ago
JSON representation
Automatic test of the mnk-game
- Host: GitHub
- URL: https://github.com/mpgn/mnk-game-test
- Owner: mpgn
- License: mit
- Created: 2014-10-07T21:11:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-23T13:26:49.000Z (about 11 years ago)
- Last Synced: 2025-02-14T20:32:06.954Z (11 months ago)
- Language: Shell
- Size: 352 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mnk-game-test
=============
Automatic test of the mnk-game - Adapted for the CREMI machines. Tested on a
Dedian with an Intel Xeon
### 1) How to use the script ?
Go to the parent folder of the `mnk-game/` directory
```
git clone https://github.com/martialdidit/mnk-game-test.git
cd mnk-game-test
chmod +x fabulous.sh
```
You can now launch the tests regarding what you want to test !
```
-s : file sample_test -> just check the basic tests of TP1
-g : file grid_test -> the tests of the TP2 & some of TP3
-c : file test_contest -> tests of the contest mode
-b : file board_test.c -> tests of the board TP4
```
There is also valgrind tests in the script !
Launch the **./fablulous** test with only one option:
```
./fabulous.sh -s #or -g -c -b
```
All options:
```
./fabulous.sh -s -g -c -b
```
Enjoy !
### 2) See the results
If there is an error you will the error code, and the output error of your mnk-game.
At the end of the script you will see your score !
Some time, just run the script twice if you have a valgrind error with option -V
### 3) Particapte
If you want to improve this script, feel free to create a pull request