Blame test/png-roundtrip2.test
|
Packit |
78deda |
#! /bin/bash
|
|
Packit |
78deda |
# This script tests: pngtopam pamtopng
|
|
Packit |
78deda |
# Also requires:
|
|
Packit |
78deda |
|
|
Packit |
78deda |
# Failure message
|
|
Packit |
78deda |
## If this test fails and pnm-roundtrip.test succeeds, it indicates
|
|
Packit |
78deda |
## some problem with pamtopng.
|
|
Packit |
78deda |
##
|
|
Packit |
78deda |
## If both tests fail, the likely cause is a problem with pngtopam.
|
|
Packit |
78deda |
## It is also possible that there is some problem in libpng.
|
|
Packit |
78deda |
|
|
Packit |
78deda |
# Test 1. Should print 1926073387 101484 twice
|
|
Packit |
78deda |
for flags in "" -gamma=.45
|
|
Packit |
78deda |
do
|
|
Packit |
78deda |
pamtopng testimg.ppm $flags | pngtopam | cksum
|
|
Packit |
78deda |
done
|
|
Packit |
78deda |
|
|
Packit |
78deda |
# Test 2. Should print 2425386270 41 twice
|
|
Packit |
78deda |
for flags in "" -gamma=.45
|
|
Packit |
78deda |
do
|
|
Packit |
78deda |
pamtopng testgrid.pbm $flags | pngtopam | cksum
|
|
Packit |
78deda |
done
|