blob: cd00c0f1412e5bc96360043c70ca83389d742c0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#! /bin/bash
# This script tests: ppmpat
# Also requires:
# Test 1. Should print: 4008533639 781
ppmpat -g2 --color=rgb:32/0d/b7,rgb:31/58/a3 16 16 | cksum
# Test 2. Should print: 3805937800 9613
ppmpat -g3 --color=rgb:32/0d/b7,rgb:31/58/a3,rgb:e9/5e/d4 64 50 | cksum
# Test 3. Should print: 2698433077 1549
ppmpat -madras --color=rgb:32/0d/b7,rgb:31/58/a3,rgb:e9/5e/d4 32 16 | cksum
# Test 4. Should print: 3705929501 781
ppmpat -tartan --color=rgb:32/0d/b7,rgb:31/58/a3,rgb:e9/5e/d4 16 16 | cksum
# Test 5. Should print: 3057513592 661
ppmpat -argyle1 --color=rgb:ff/ff/ff,rgb:ff/0/0 12 18 | cksum
# Test 6. Should print: 1861389287 661
ppmpat -argyle2 --color=rgb:00/00/00,rgb:ff/80/80,rgb:e0/e0/e0 12 18 | cksum
|