Blame test/targa-roundtrip.test
|
Packit |
78deda |
#! /bin/bash
|
|
Packit |
78deda |
# This script tests: pamtotga tgatoppm
|
|
Packit |
78deda |
# Also requires: ppmtopgm pgmtopbm pamchannel
|
|
Packit |
78deda |
|
|
Packit |
78deda |
|
|
Packit |
78deda |
#Test 1: Should print 2425386270 41, cksum of testgrid.pbm
|
|
Packit |
78deda |
|
|
Packit |
78deda |
pamtotga -mono testgrid.pbm | \
|
|
Packit |
78deda |
tgatoppm | ppmtopgm | \
|
|
Packit |
78deda |
pgmtopbm -threshold -val 0.5 | cksum
|
|
Packit |
78deda |
|
|
Packit |
78deda |
#Test 2: Should produce 1571496937 33838, cksum of testimg.red
|
|
Packit |
78deda |
pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | \
|
|
Packit |
78deda |
pamtotga -cmap | tgatoppm | ppmtopgm | cksum
|
|
Packit |
78deda |
|
|
Packit |
78deda |
#Test 3: Should print 1926073387 101484, cksum of testimg.ppm
|
|
Packit |
78deda |
|
|
Packit |
78deda |
pamtotga -rgb testimg.ppm | tgatoppm | cksum
|