about summary refs log tree commit diff
path: root/test/png-roundtrip2.test
blob: 85149a91022affa74a607fb0c5f800218b0a58a3 (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/sh
# 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 281226646 481 twice
for flags in "" -gamma=.45
  do
  pamtopng maze.pbm $flags | pngtopam | cksum
  done