#! /bin/sh -vx # $Id$ # Copyright 2017 Karl Berry # Copyright 2010-2013 Peter Breitenlohner # You may freely use, modify and/or distribute this file. test -d ptests || mkdir -p ptests rm -f ptests/xexampl.* ptests/xenc*.* rc=0 TEXMFCNF=$srcdir/../kpathsea BSTINPUTS=$srcdir/tests BIBINPUTS=$srcdir/tests export TEXMFCNF BSTINPUTS BIBINPUTS cp $srcdir/tests/exampl.aux ptests/xexampl.aux ./pbibtex ptests/xexampl || rc=1 diff $srcdir/tests/exampl.bbl ptests/xexampl.bbl || rc=2 cp $srcdir/tests/enc.aux ptests/xenc.aux guess_input_kanji_encoding=1 ./pbibtex ptests/xenc || rc=3 diff $srcdir/tests/enc-p.bbl ptests/xenc.bbl || rc=4 cp $srcdir/tests/enc-e.aux ptests/xenc-e.aux guess_input_kanji_encoding=1 ./pbibtex -kanji=euc ptests/xenc-e || rc=5 diff $srcdir/tests/enc-ep.bbl ptests/xenc-e.bbl || rc=6 cp $srcdir/tests/enc-s.aux ptests/xenc-s.aux ./pbibtex -guess-input-enc -kanji=sjis ptests/xenc-s || rc=7 diff $srcdir/tests/enc-sp.bbl ptests/xenc-s.bbl || rc=8 exit $rc