#! /bin/sh -vx # $Id$ # Copyright 2017 Karl Berry # Copyright 2010 Peter Breitenlohner # You may freely use, modify and/or distribute this file. # Using test data from Philipp Lehman BinDir=${BinDir:-.} ExeExt=${ExeExt:-} _bibtex8=$BinDir/bibtex8$ExeExt _bibtexu=$BinDir/bibtexu$ExeExt test -d tests || mkdir -p tests # Create bib data mk_bib () { for i do for j in 0 1 2 3 4 5 6 7 8 9; do for k in 0 1 2 3 4 5 6 7 8 9; do for l in 0 1 2 3 4 5 6 7 8 9; do cat <tests/memtest$t.aux env= case $t in 1) mk_bib 0 >tests/memtest.bib;; 2) mk_bib 1 >>tests/memtest.bib;; 3) env='ent_str_size=2000 glob_str_size=2000';; esac echo "Running memtest$t ..." eval $env \ TEXMFCNF=$srcdir/../kpathsea \ BSTINPUTS=$srcdir/../web2c/tests'\;'$srcdir/csf \ BIBINPUTS=./tests \ $_bibtex8 -s tests/memtest$t || exit `expr 10 + $t` cp -p tests/memtest$t.aux tests/memtestu$t.aux eval $env \ TEXMFCNF=$srcdir/../kpathsea \ BSTINPUTS=$srcdir/../web2c/tests \ BIBINPUTS=./tests \ $_bibtexu -s tests/memtestu$t || exit `expr 20 + $t` done