A shellscript to compare the result of 2 fillit program
- I used this script to test the result of my fillit project by comparing the result with other students project.
- The script uses Tetriminos-generator to generate a random input.
- Then, the script runs two fillit program and compare the results.
- If there is a different, the script will stop running. You can then look at the input, outputs and the different file.
- Download and install Tetriminos-generator. You can see the instruction in its project page.
- Put this script in the Tetriminos-generator root directory.
- Put two fillit programs each one in each folder at the Tetriminos-generator root directory.
- So the structure will look like this:
Tretriminos-generator/ compare.sh first-fillit-folder/ fillit second-fillit-folder/ fillit - Don't forget to use make command on each fillit.
- Edit compare.sh
- NUM is the number of times the test will run.
- FIRST is your first fillit directory name.
- SECOND is your second fillit derectory name.
- Run:
sh compare.sh