From 4296fe52a37736b7533b3bf447b29ad7933a3ab4 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 24 Nov 2012 19:18:45 +0000 Subject: New test framework, lots of tests git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1775 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/xwd-roundtrip.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test/xwd-roundtrip.test (limited to 'test/xwd-roundtrip.test') diff --git a/test/xwd-roundtrip.test b/test/xwd-roundtrip.test new file mode 100755 index 00000000..e24db7bc --- /dev/null +++ b/test/xwd-roundtrip.test @@ -0,0 +1,14 @@ +#! /bin/bash +# This script tests: pnmtoxwd xwdtopnm +# Also requires: pamdepth ppmtopgm + +# Test 1. Should produce 2871603838 33838 +# which is the output of ppmtopgm testimg.ppm | cksum +${PBM_BINPREFIX}ppmtopgm testimg.ppm | ${PBM_TESTPREFIX}pnmtoxwd | \ + ${PBM_TESTPREFIX}xwdtopnm | ${PBM_BINPREFIX}pamdepth 255 | cksum + +${PBM_TESTPREFIX}pnmtoxwd --quiet testimg.ppm | \ + ${PBM_TESTPREFIX}xwdtopnm --quiet | ${PBM_BINPREFIX}pamdepth 255 | cksum + +${PBM_TESTPREFIX}pnmtoxwd --quiet testgrid.pbm | \ + ${PBM_TESTPREFIX}xwdtopnm | cksum -- cgit 1.4.1