blob: 85e04b2675079c7c40a3d56d8ffdbfa4ceb112ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#! /bin/bash
# This script tests: ppmtoilbm ilbmtoppm
# Also requires: pamseq pamdepth pamtopnm pnmremap
echo "Test 1. Should produce 669206373 10102 five times"
#Output is PPM raw, 57 by 59 maxval 255
ppmtoilbm maze.pbm | ilbmtoppm | cksum
ppmtoilbm -aga maze.pbm | ilbmtoppm | cksum
ppmtoilbm -ham6 maze.pbm | ilbmtoppm | cksum
ppmtoilbm -ham8 maze.pbm | ilbmtoppm | cksum
echo "Test 2. Should produce 1926073387 101484 three times"
ppmtoilbm testimg.ppm | ilbmtoppm | cksum
ppmtoilbm -24force testimg.ppm | ilbmtoppm | cksum
ppmtoilbm -dcbits 8 8 8 -nocompress testimg.ppm | ilbmtoppm | cksum
echo "Test 3. Should print 984199586 101484"
pamseq 3 5 -tupletype=RGB | pamdepth 255 | pamtopnm | \
pnmremap -mapfile=- testimg.ppm | ppmtoilbm | ilbmtoppm | cksum
echo "Test 4. Should print 2059976475 661 twice"
pamseq 3 5 -tupletype=RGB | pamtopnm | \
ppmtoilbm -compress | ilbmtoppm | cksum
pamseq 3 5 -tupletype=RGB | pamtopnm | \
ppmtoilbm -nocompress | ilbmtoppm | cksum
|