about summary refs log tree commit diff
path: root/test/pamcut.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-11-24 19:18:45 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-11-24 19:18:45 +0000
commit4296fe52a37736b7533b3bf447b29ad7933a3ab4 (patch)
tree87644c5b7e46fb333bcde7903f8dcf0de4964d3d /test/pamcut.test
parentb3f62ef1f3fb72b5674c4481dd25148fbe51850b (diff)
downloadnetpbm-mirror-4296fe52a37736b7533b3bf447b29ad7933a3ab4.tar.gz
netpbm-mirror-4296fe52a37736b7533b3bf447b29ad7933a3ab4.tar.xz
netpbm-mirror-4296fe52a37736b7533b3bf447b29ad7933a3ab4.zip
New test framework, lots of tests
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1775 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pamcut.test')
-rwxr-xr-xtest/pamcut.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pamcut.test b/test/pamcut.test
new file mode 100755
index 00000000..080bcad8
--- /dev/null
+++ b/test/pamcut.test
@@ -0,0 +1,14 @@
+#! /bin/bash
+# This script tests: pamcut pbmmake
+# Also requires: 
+
+# Test 1.  Should print 2958909756 124815
+${PBM_TESTPREFIX}pamcut -top 0 -left 0 -width 260 -height 160 \
+  -pad testimg.ppm | cksum
+# Test 2.  Should print 1550940962 10933
+${PBM_TESTPREFIX}pamcut -top 200 -left 120 -width 40 -height 40 \
+  -pad testimg.ppm | cksum
+# Test 3.  Should print 708474423 14
+${PBM_TESTPREFIX}pamcut -top 5 -left 5 -bottom 5 -right 5 testimg.ppm | cksum
+# Test 3.  Should print 3412257956 129
+${PBM_TESTPREFIX}pbmmake -g 50 50 | ${PBM_TESTPREFIX}pamcut 5 5 30 30 | cksum