about summary refs log tree commit diff
path: root/test/pamfile.test
blob: 545a2289d4fa7b786d831c4f191b820285946999 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash
# This script tests: pamfile
# Also requires: pamchannel pamtopnm


pamfile testimg.ppm
pamfile testgrid.pbm
pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | pamfile
pamchannel -tupletype="GRAYSCALE" -infile=testimg.ppm 0 | pamfile

cat testgrid.pbm testgrid.pbm testgrid.pbm | pamfile -count
cat testgrid.pbm testgrid.pbm testgrid.pbm | pamfile -allimages

pamfile -size testimg.ppm
pamfile -machine testimg.ppm
cat testgrid.pbm testimg.ppm testgrid.pbm | pamfile -machine