about summary refs log tree commit diff
path: root/test/jbig-roundtrip.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-02-02 01:48:57 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-02-02 01:48:57 +0000
commit2f0b278d8156fb9c829f1ac97db5b8f2aab58717 (patch)
tree2bbc810809a84ca46758859ab167e060b3f6d7bc /test/jbig-roundtrip.test
parentbabc41a25094d444c75c6345a3958d16293f85c1 (diff)
downloadnetpbm-mirror-2f0b278d8156fb9c829f1ac97db5b8f2aab58717.tar.gz
netpbm-mirror-2f0b278d8156fb9c829f1ac97db5b8f2aab58717.tar.xz
netpbm-mirror-2f0b278d8156fb9c829f1ac97db5b8f2aab58717.zip
Add ability to run tests for a specific program; add ability to print messages when tests fail; new tests
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2119 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/jbig-roundtrip.test')
-rwxr-xr-xtest/jbig-roundtrip.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/jbig-roundtrip.test b/test/jbig-roundtrip.test
new file mode 100755
index 00000000..766148c6
--- /dev/null
+++ b/test/jbig-roundtrip.test
@@ -0,0 +1,14 @@
+#! /bin/bash
+# This script tests: pnmtojbig jbigtopnm
+# Also requires: ppmtopgm
+
+  alias pnmtojbig="${PBM_TESTPREFIX}pnmtojbig"
+  alias jbigtopnm="${PBM_TESTPREFIX}jbigtopnm"
+  alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm"
+  shopt -s expand_aliases
+
+# Test 1.  Should print 2425386270 41
+pnmtojbig testgrid.pbm | jbigtopnm | cksum
+
+# Test 2.  Should print 2871603838 33838
+ppmtopgm testimg.ppm | pnmtojbig | jbigtopnm | cksum
\ No newline at end of file