From ceed678ddb71c600877bc341854908b499367df6 Mon Sep 17 00:00:00 2001 From: Takuji Tanaka Date: Sun, 27 Nov 2022 06:52:11 +0000 Subject: (u)ptex: Add tests for pTeX compatible mode of tools for upTeX git-svn-id: svn://tug.org/texlive/trunk@65115 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/uptexdir/upbibtex-mem.test | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 Build/source/texk/web2c/uptexdir/upbibtex-mem.test (limited to 'Build/source/texk/web2c/uptexdir/upbibtex-mem.test') diff --git a/Build/source/texk/web2c/uptexdir/upbibtex-mem.test b/Build/source/texk/web2c/uptexdir/upbibtex-mem.test new file mode 100755 index 00000000000..70473cd59c9 --- /dev/null +++ b/Build/source/texk/web2c/uptexdir/upbibtex-mem.test @@ -0,0 +1,70 @@ +#! /bin/sh -vx +# $Id$ +# Copyright 2017 Karl Berry +# Copyright 2010-2013 Peter Breitenlohner +# You may freely use, modify and/or distribute this file. + +# Using test data from Philipp Lehman + +test -d uptests || mkdir -p uptests + +# 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 <uptests/memtest$t.aux + + env= + + case $t in + 1) mk_bib 0 >uptests/memtest.bib;; + 2) mk_bib 1 >>uptests/memtest.bib;; + 3) env='ent_str_size=2000 glob_str_size=2000';; + esac + + echo "Running memtest$t ..." + + eval $env \ + TEXMFCNF=$srcdir/../kpathsea \ + BSTINPUTS=$srcdir/tests \ + BIBINPUTS=./uptests \ + ./upbibtex uptests/memtest$t || exit 1 + +done + -- cgit v1.2.3