diff options
Diffstat (limited to 'ue1/imgsynth/test/test.sh')
| -rwxr-xr-x | ue1/imgsynth/test/test.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ue1/imgsynth/test/test.sh b/ue1/imgsynth/test/test.sh new file mode 100755 index 0000000..45ea077 --- /dev/null +++ b/ue1/imgsynth/test/test.sh | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | rm -f test/yellow_man_out.bmp | ||
| 4 | ./imgsynth -i test/input | ||
| 5 | if [ "$(md5sum < test/yellow_man_out.bmp)" != "$(md5sum < test/yellow_man_ref.bmp)" ] | ||
| 6 | then | ||
| 7 | echo "ERROR: test/yellow_man_ref.bmp and test/yellow_man_ref.bmp differ" | ||
| 8 | exit 1 | ||
| 9 | else | ||
| 10 | echo "Test successful" | ||
| 11 | fi | ||
| 12 | |||
