summaryrefslogtreecommitdiffstats
path: root/ue1/imgsynth/test
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-04-27 00:24:16 +0200
committermanuel <manuel@nc8430.lan>2009-04-27 00:24:16 +0200
commit384539f7cc9feaa7ef7cee385cce472c6966c843 (patch)
tree42d3cbc96d44087c0b6bbe8d41710e5c5f1efced /ue1/imgsynth/test
downloadooprog-384539f7cc9feaa7ef7cee385cce472c6966c843.tar.gz
ooprog-384539f7cc9feaa7ef7cee385cce472c6966c843.tar.bz2
ooprog-384539f7cc9feaa7ef7cee385cce472c6966c843.zip
Adding ue1
Diffstat (limited to 'ue1/imgsynth/test')
-rw-r--r--ue1/imgsynth/test/input6
-rwxr-xr-xue1/imgsynth/test/test.sh12
-rw-r--r--ue1/imgsynth/test/yellow_man_in.bmpbin0 -> 530 bytes
-rw-r--r--ue1/imgsynth/test/yellow_man_out.bmpbin0 -> 530 bytes
-rw-r--r--ue1/imgsynth/test/yellow_man_ref.bmpbin0 -> 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 @@
1read(BMP, test/yellow_man_in.bmp)
2fillrect(0,3,6,5,0,255,0)
3fillrect(2,13,7,4,0,0,255)
4write(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
3rm -f test/yellow_man_out.bmp
4./imgsynth -i test/input
5if [ "$(md5sum < test/yellow_man_out.bmp)" != "$(md5sum < test/yellow_man_ref.bmp)" ]
6then
7 echo "ERROR: test/yellow_man_ref.bmp and test/yellow_man_ref.bmp differ"
8 exit 1
9else
10 echo "Test successful"
11fi
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