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

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

# Test 2. Should produce: 2845495212 75033
${PBM_TESTPREFIX}ppmdmkfont | ${PBM_TESTPREFIX}ppmdcfont | cksum

# There is a strange glitch in output when ppmdcfont is compiled by clang:
# 3171,3173c3171,3173
# <     0x01,
# <     95,
# <     32
# ---
# >     0x00,
# >     0,
# >     0