about summary refs log tree commit diff
path: root/test/pnmshear.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pnmshear.test')
-rw-r--r--test/pnmshear.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/pnmshear.test b/test/pnmshear.test
new file mode 100644
index 00000000..276e3e22
--- /dev/null
+++ b/test/pnmshear.test
@@ -0,0 +1,19 @@
+#! /bin/bash
+# This script tests: pnmshear
+# Also requires: pbmmake
+
+# Test.  Should produce 2080980136 22
+${PBM_BINPREFIX}pbmmake -g 7 7 | \
+   ${PBM_TESTPREFIX}pnmshear 45 -noantialias  | cksum
+
+# Output of above, in pbm plain format
+#
+# P1
+# 14 7
+# 01010101111111
+# 10101011111111
+# 10101010111111
+# 11101010111111
+# 11101010101111
+# 11111010101111
+# 11111010101011