about summary refs log tree commit diff
path: root/test/ppmdfont.test
blob: e6b461f1ab19c61734dfbdd3d007e1873a91a564 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh
# This script tests: ppmdmkfont ppmddumpfont ppmdcfont
# Also requires:


# Test 1. Should produce: 2726488777 48129
ppmdmkfont | ppmddumpfont 2>&1 | cksum

# Test 2. Should produce: 2845495212 75033
ppmdmkfont | ppmdcfont | cksum

# There is a strange glitch in output when ppmdcfont is compiled by
# clang version 3.2.  Optimization (-O3) seems to be a factor.
# 
# 3171,3173c3171,3173
# <     0x01,
# <     95,
# <     32
# ---
# >     0x00,
# >     0,
# >     0