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

  alias pamfile="${PBM_TESTPREFIX}pamfile"
  shopt -s expand_aliases

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