3 echo "Generating pbm file"
4 .
/runtest.sh PBM_test
&> /dev
/null
6 echo -n "Testing pbm load/save ... "
7 .
/runtest.sh PBM_invert
test.pbm test_inv.pbm
&> /dev
/null
8 .
/runtest.sh PBM_invert test_inv.pbm test_dinv.pbm
&> /dev
/null
10 if diff test.pbm test_dinv.pbm
&> /dev
/null
; then
16 echo "Generating pgm file"
17 .
/runtest.sh PGM_test
&> /dev
/null
19 echo -n "Testing pgm load/save ... "
20 .
/runtest.sh PGM_invert
test.pgm test_inv.pgm
&> /dev
/null
21 .
/runtest.sh PGM_invert test_inv.pgm test_dinv.pgm
&> /dev
/null
23 if diff test.pgm test_dinv.pgm
&> /dev
/null
; then
29 rm -f test.pbm test_inv.pbm test_dinv.pbm
30 rm -f test.pgm test_inv.pgm test_dinv.pgm