diff options
Diffstat (limited to 'ue1/imgsynth/test')
| -rw-r--r-- | ue1/imgsynth/test/input | 6 | ||||
| -rwxr-xr-x | ue1/imgsynth/test/test.sh | 12 | ||||
| -rw-r--r-- | ue1/imgsynth/test/yellow_man_in.bmp | bin | 0 -> 530 bytes | |||
| -rw-r--r-- | ue1/imgsynth/test/yellow_man_out.bmp | bin | 0 -> 530 bytes | |||
| -rw-r--r-- | ue1/imgsynth/test/yellow_man_ref.bmp | bin | 0 -> 530 bytes |
5 files changed, 18 insertions, 0 deletions
diff --git a/ue1/imgsynth/test/input b/ue1/imgsynth/test/input new file mode 100644 index 0000000..8036ae3 --- /dev/null +++ b/ue1/imgsynth/test/input | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | read(BMP, test/yellow_man_in.bmp) | ||
| 2 | fillrect(0,3,6,5,0,255,0) | ||
| 3 | fillrect(2,13,7,4,0,0,255) | ||
| 4 | write(BMP, "test/yellow_man_out.bmp") | ||
| 5 | |||
| 6 | |||
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 | |||
diff --git a/ue1/imgsynth/test/yellow_man_in.bmp b/ue1/imgsynth/test/yellow_man_in.bmp new file mode 100644 index 0000000..49372b2 --- /dev/null +++ b/ue1/imgsynth/test/yellow_man_in.bmp | |||
| Binary files differ | |||
diff --git a/ue1/imgsynth/test/yellow_man_out.bmp b/ue1/imgsynth/test/yellow_man_out.bmp new file mode 100644 index 0000000..340eab9 --- /dev/null +++ b/ue1/imgsynth/test/yellow_man_out.bmp | |||
| Binary files differ | |||
diff --git a/ue1/imgsynth/test/yellow_man_ref.bmp b/ue1/imgsynth/test/yellow_man_ref.bmp new file mode 100644 index 0000000..340eab9 --- /dev/null +++ b/ue1/imgsynth/test/yellow_man_ref.bmp | |||
| Binary files differ | |||
