about summary refs log tree commit diff
path: root/test/pamtable.test
blob: 335d45c4d2733141bd7760453ad8a0be99afe04f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash
# 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