summaryrefslogtreecommitdiff
path: root/Build/source/texk/cjkutils/sjisconv.test
blob: 2e6c09ae92ec3b4a996d781dd961d2d442089b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2011 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_sjisconv=$BinDir/sjisconv$ExeExt

# pre-generated test results in the repository are stored in LF
# but the output might be written in CRLF on some platform.
# if 'diff --strip-trailing-cr' is available, exploit it.
# (useful for tests on win32 binaries run on MSYS shell)
DIFF="diff"
$DIFF --strip-trailing-cr $0 $0 \
  && DIFF="diff --strip-trailing-cr" || echo

$_sjisconv <$srcdir/tests/sjisconv.tex >sjisconv.cjk \
	&& $DIFF sjisconv.cjk $srcdir/tests/sjisconv.cjk \
	|| exit 1