From ccfc548cc8507b16397f674cbb0a8911781e27b4 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 12 Dec 2012 03:43:47 +0000 Subject: various changes to test facility git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1806 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/targa-roundtrip.test | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 test/targa-roundtrip.test (limited to 'test/targa-roundtrip.test') diff --git a/test/targa-roundtrip.test b/test/targa-roundtrip.test new file mode 100755 index 00000000..3fac1630 --- /dev/null +++ b/test/targa-roundtrip.test @@ -0,0 +1,21 @@ +#! /bin/bash +# This script tests: pamtotga tgatoppm +# Also requires: ppmtopgm pgmtopbm + +#Test 1: Should print 2425386270 41, cksum of testgrid.pbm + +${PBM_TESTPREFIX}pamtotga -mono testgrid.pbm | \ + ${PBM_TESTPREFIX}tgatoppm | ${PBM_BINPREFIX}ppmtopgm | \ + ${PBM_BINPREFIX}pgmtopbm -threshold -val 0.5 | cksum + +#Test 2: Should print 2871603838 33838, cksum of testimg.pgm + +${PBM_BINPREFIX}ppmtopgm testimg.ppm > ${tmpdir}/testimg.pgm +${PBM_TESTPREFIX}pamtotga -cmap ${tmpdir}/testimg.pgm | \ + ${PBM_TESTPREFIX}tgatoppm | ${PBM_BINPREFIX}ppmtopgm | cksum + +rm ${tmpdir}/testimg.pgm + +#Test 3: Should print 1926073387 101484, cksum of testimg.ppm + +${PBM_TESTPREFIX}pamtotga -rgb testimg.ppm | ${PBM_TESTPREFIX}tgatoppm | cksum -- cgit 1.4.1