summaryrefslogtreecommitdiff
path: root/Build/source/texk/dviout-util/dvispc.test
blob: 28640601105a34f90d49b6417b7434ccc0fb6ba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh -vx
# $Id$
# Copyright (C) 2018 Japanese TeX Development Community <issue@texjp.org>
# You may freely use, modify and/or distribute this file.

testdir=$srcdir/tests

rc=0

./dvispc -s $testdir/test.dvi > xtest.spc && \
  diff $testdir/test.spc xtest.spc && echo || rc=1

./dvispc -c $testdir/test.dvi xtestout.dvi >/dev/null && \
  cmp $testdir/testout.dvi xtestout.dvi && echo || rc=2

./dvispc -a $testdir/test.dvi xtesta.txt && \
  ./dvispc -x xtesta.txt xtestax.dvi >/dev/null && \
  cmp $testdir/test.dvi xtestax.dvi && echo || rc=4

exit $rc