From 384539f7cc9feaa7ef7cee385cce472c6966c843 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 27 Apr 2009 00:24:16 +0200 Subject: Adding ue1 --- ue1/imgsynth/test/input | 6 ++++++ ue1/imgsynth/test/test.sh | 12 ++++++++++++ ue1/imgsynth/test/yellow_man_in.bmp | Bin 0 -> 530 bytes ue1/imgsynth/test/yellow_man_out.bmp | Bin 0 -> 530 bytes ue1/imgsynth/test/yellow_man_ref.bmp | Bin 0 -> 530 bytes 5 files changed, 18 insertions(+) create mode 100644 ue1/imgsynth/test/input create mode 100755 ue1/imgsynth/test/test.sh create mode 100644 ue1/imgsynth/test/yellow_man_in.bmp create mode 100644 ue1/imgsynth/test/yellow_man_out.bmp create mode 100644 ue1/imgsynth/test/yellow_man_ref.bmp (limited to 'ue1/imgsynth/test') 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 @@ +read(BMP, test/yellow_man_in.bmp) +fillrect(0,3,6,5,0,255,0) +fillrect(2,13,7,4,0,0,255) +write(BMP, "test/yellow_man_out.bmp") + + 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 @@ +#!/bin/sh + +rm -f test/yellow_man_out.bmp +./imgsynth -i test/input +if [ "$(md5sum < test/yellow_man_out.bmp)" != "$(md5sum < test/yellow_man_ref.bmp)" ] +then + echo "ERROR: test/yellow_man_ref.bmp and test/yellow_man_ref.bmp differ" + exit 1 +else + echo "Test successful" +fi + 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 Binary files /dev/null and b/ue1/imgsynth/test/yellow_man_in.bmp 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 Binary files /dev/null and b/ue1/imgsynth/test/yellow_man_out.bmp 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 Binary files /dev/null and b/ue1/imgsynth/test/yellow_man_ref.bmp differ -- cgit v1.2.3