From 9870c37e41d719d5f85ab7e984699849f7d44a45 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 12 Aug 2014 01:53:28 +0000 Subject: Add new tests git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2247 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/ilbm-roundtrip.test | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 test/ilbm-roundtrip.test (limited to 'test/ilbm-roundtrip.test') diff --git a/test/ilbm-roundtrip.test b/test/ilbm-roundtrip.test new file mode 100755 index 00000000..495daf53 --- /dev/null +++ b/test/ilbm-roundtrip.test @@ -0,0 +1,20 @@ +#! /bin/bash +# This script tests: ppmtoilbm ilbmtoppm +# Also requires: pamseq pamdepth pamtopnm pnmremap + + alias ppmtoilbm="${PBM_TESTPREFIX}ppmtoilbm" + alias ilbmtoppm="${PBM_TESTPREFIX}ilbmtoppm" + alias pamseq="${PBM_BINPREFIX}pamseq" + alias pamdepth="${PBM_BINPREFIX}pamdepth" + alias pamtopnm="${PBM_BINPREFIX}pamtopnm" + alias pnmremap="${PBM_BINPREFIX}pnmremap" + shopt -s expand_aliases + +#Test. Should produce 1926073387 101484 +ppmtoilbm testimg.ppm | ilbmtoppm | cksum + +#Test. Should print 984199586 101484 +pamseq 3 5 -tupletype=RGB | pamdepth 255 | pamtopnm | \ + pnmremap -mapfile=- testimg.ppm | ppmtoilbm | ilbmtoppm | cksum + + -- cgit 1.4.1