about summary refs log tree commit diff
path: root/test/ppmdfont.test
blob: 7d894789465ccf20d29894f083330c4452c1b1dd (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/bash
# 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