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/pbmclean.test | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 test/pbmclean.test (limited to 'test/pbmclean.test') diff --git a/test/pbmclean.test b/test/pbmclean.test new file mode 100755 index 00000000..05fe9338 --- /dev/null +++ b/test/pbmclean.test @@ -0,0 +1,16 @@ +#! /bin/bash +# This script tests: pbmclean +# Also requires: pbmmake pbmpage pnmmargin + +${PBM_BINPREFIX}pbmmake -g 3 3 | ${PBM_BINPREFIX}pnmmargin -black 2 \ + >${tmpdir}/test.pbm + +for n in 1 2 3 4 5 6 7 8 +do +${PBM_TESTPREFIX}pbmclean -min=$n -black -plain ${tmpdir}/test.pbm +done + +rm ${tmpdir}/test.pbm + +# Should print 760076056 4210813 +${PBM_BINPREFIX}pbmpage 1 | ${PBM_TESTPREFIX}pbmclean -black | cksum -- cgit 1.4.1