#! /bin/sh -vx # $Id$ # Copyright 2017 Karl Berry # Copyright 2009 Peter Breitenlohner # You may freely use, modify and/or distribute this file. BinDir=${BinDir:-.} ExeExt=${ExeExt:-} _detex=$BinDir/detex$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 echo '#' >texmf.cnf rc=0 $_detex -v $_detex $srcdir/test.tex >test.out \ && $DIFF test.out $srcdir/test.lout \ || rc=1 $_detex -l $srcdir/test.tex >test.out \ && $DIFF test.out $srcdir/test.lout \ || rc=2 $_detex -t $srcdir/test.tex >test.out \ && $DIFF test.out $srcdir/test.tout \ || rc=3 exit $rc