diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-02-02 01:48:57 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-02-02 01:48:57 +0000 |
commit | 2f0b278d8156fb9c829f1ac97db5b8f2aab58717 (patch) | |
tree | 2bbc810809a84ca46758859ab167e060b3f6d7bc /test/jbig-roundtrip.test | |
parent | babc41a25094d444c75c6345a3958d16293f85c1 (diff) | |
download | netpbm-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-x | test/jbig-roundtrip.test | 14 |
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 |