From 2f0b278d8156fb9c829f1ac97db5b8f2aab58717 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 2 Feb 2014 01:48:57 +0000 Subject: 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 --- test/jbig-roundtrip.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test/jbig-roundtrip.test (limited to 'test/jbig-roundtrip.test') 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 -- cgit 1.4.1