From 2606d971b2a30e3d61644228b2b77e122a45acf6 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 8 Feb 2015 01:57:46 +0000 Subject: Add roundtrip tests for sbig, st4 git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2409 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/st4-roundtrip.test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 test/st4-roundtrip.test (limited to 'test/st4-roundtrip.test') diff --git a/test/st4-roundtrip.test b/test/st4-roundtrip.test new file mode 100755 index 00000000..bd3da5f1 --- /dev/null +++ b/test/st4-roundtrip.test @@ -0,0 +1,17 @@ +#! /bin/bash +# This script tests: pgmtost4 st4topgm +# Also requires: pamchannel pamtopnm pamcut + + alias st4topgm="${PBM_TESTPREFIX}st4topgm" + alias pgmtost4="${PBM_TESTPREFIX}pgmtost4" + shopt -s expand_aliases + +# Input image of pgmtost4 must by 192x165 + +# Should produce 185194654 31695 which is the output of: +# pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | \ +# pamtopnm | pamcut -pad 0 0 192 165 | cksum + +pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | \ + pamtopnm | pamcut -pad 0 0 192 165 | \ + pgmtost4 | st4topgm - | cksum -- cgit 1.4.1