cleanup: - bits_per_pixel -> bpp
[gfxprim.git] / loaders / tests / autotest.sh
blob5ce74d1cc7c2e5fd1ddf71df5c3f19796ff85f6b
1 #!/bin/bash
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
11 echo "OK"
12 else
13 echo "FAILED"
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
24 echo "OK"
25 else
26 echo "FAILED"
29 rm -f test.pbm test_inv.pbm test_dinv.pbm
30 rm -f test.pgm test_inv.pgm test_dinv.pgm