From 7907f67d07d36a7e20421a1ec3a0eceecac4aacd Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 20 Sep 2022 03:01:38 +0000 Subject: CTAN sync 202209200301 --- biblio/bibtex/bibtex-x/tests/bibtexu-char.test | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 biblio/bibtex/bibtex-x/tests/bibtexu-char.test (limited to 'biblio/bibtex/bibtex-x/tests/bibtexu-char.test') diff --git a/biblio/bibtex/bibtex-x/tests/bibtexu-char.test b/biblio/bibtex/bibtex-x/tests/bibtexu-char.test new file mode 100755 index 0000000000..727810c682 --- /dev/null +++ b/biblio/bibtex/bibtex-x/tests/bibtexu-char.test @@ -0,0 +1,54 @@ +#! /bin/sh -vx +# +# Copyright 2022 TANAKA Takuji +# You may freely use, modify and/or distribute this file. + +test -d tests || mkdir -p tests + +rc=0 + +TEXMFCNF=$srcdir/../kpathsea +BSTINPUTS=$srcdir/tests +BIBINPUTS=$srcdir/tests +export TEXMFCNF BSTINPUTS BIBINPUTS + + +## test for add.period$ +cp $srcdir/tests/periodu.aux tests/xperiodu.aux +./bibtexu tests/xperiodu || rc=3 +diff $srcdir/tests/periodu.bbl tests/xperiodu.bbl || rc=4 + +## test for substring$ +cp $srcdir/tests/substru.aux tests/xsubstru.aux +./bibtexu tests/xsubstru || rc=5 +diff $srcdir/tests/substru.bbl tests/xsubstru.bbl || rc=6 + +## test for text.length$, text.prefix$ +cp $srcdir/tests/txtprfxu.aux tests/xtxtprfxu.aux +./bibtexu tests/xtxtprfxu || rc=7 +diff $srcdir/tests/txtprfxu.bbl tests/xtxtprfxu.bbl || rc=8 + +## test for width$ +## (FIXME) Greek, Cyrillic are not impremented yet +cp $srcdir/tests/widthu.aux tests/xwidthu.aux +./bibtexu tests/xwidthu || rc=9 +diff $srcdir/tests/widthu.bbl tests/xwidthu.bbl || rc=10 + +## test for chr.to.int$, int.to.str$, int.to.chr$ +cp $srcdir/tests/charu.aux tests/xcharu.aux +./bibtexu tests/xcharu || rc=11 +diff $srcdir/tests/charu.bbl tests/xcharu.bbl || rc=12 + +## test for num.names$, format.name$ +cp $srcdir/tests/nameu.aux tests/xnameu.aux +max_print_line=119 ./bibtexu tests/xnameu || rc=13 +diff $srcdir/tests/nameu.bbl tests/xnameu.bbl || rc=14 + +## test for is.knj.str$ +cp $srcdir/tests/iscjku.aux tests/xiscjku.aux +./bibtexu tests/xiscjku || rc=15 +diff $srcdir/tests/iscjku.bbl tests/xiscjku.bbl || rc=16 + + +exit $rc + -- cgit v1.2.3