about summary refs log tree commit diff
path: root/test/pamtable.test
blob: 037d3b076b5678e7115cd49ee4c3d88f1f7bcaf0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
# This script tests: pamtable
# Also requires: pamseq pamdepth pbmmake ppmrainbow

pamtable testgrid.pbm
echo
pamseq 3 2 -tupletype=RGB | pamtable
echo
pamseq 4 1 -tupletype=RGBA | pamtable
echo
for maxval in 9 10 9999 10000 65535
  do
  pbmmake -g 2 2 | pamdepth ${maxval} | pamtable
  echo
  ppmrainbow -width=3 -height=2 -norepeat black white | \
    pamdepth ${maxval} | pamtable
  echo
  ppmrainbow -width=4 -height=2 -norepeat red blue green | \
    pamdepth ${maxval} | pamtable
  echo
  done