blob: af2ad029dbb620f74822445c3be391efbc38cc48 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#! /bin/bash
# This script tests: pngtopam pamtopng
# Also requires:
# Failure message
## If this test fails and pnm-roundtrip.test succeeds, it indicates
## some problem with pamtopng.
##
## If both tests fail, the likely cause is a problem with pngtopam.
## It is also possible that there is some problem in libpng.
# Test 1. Should print 1926073387 101484 twice
for flags in "" -gamma=.45
do
pamtopng testimg.ppm $flags | pngtopam | cksum
done
# Test 2. Should print 2425386270 41 twice
for flags in "" -gamma=.45
do
pamtopng testgrid.pbm $flags | pngtopam | cksum
done
|