diff options
Diffstat (limited to 'biblio/bibtex/bibtex-x/tests/bibtex8-char.test')
-rwxr-xr-x | biblio/bibtex/bibtex-x/tests/bibtex8-char.test | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/biblio/bibtex/bibtex-x/tests/bibtex8-char.test b/biblio/bibtex/bibtex-x/tests/bibtex8-char.test new file mode 100755 index 0000000000..06d5e41af3 --- /dev/null +++ b/biblio/bibtex/bibtex-x/tests/bibtex8-char.test @@ -0,0 +1,48 @@ +#! /bin/sh -vx +# +# Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp> +# You may freely use, modify and/or distribute this file. + +test -d tests || mkdir -p tests + +rc=0 + +TEXMFCNF=$srcdir/../kpathsea +BSTINPUTS=$srcdir/tests:$srcdir/csf +BIBINPUTS=$srcdir/tests +export TEXMFCNF BSTINPUTS BIBINPUTS + + +## test for add.period$ +cp $srcdir/tests/perioda.aux tests/xperioda.aux +./bibtex8 tests/xperioda || rc=3 +diff $srcdir/tests/perioda.bbl tests/xperioda.bbl || rc=4 + +## test for substring$ +cp $srcdir/tests/substra.aux tests/xsubstra.aux +./bibtex8 tests/xsubstra || rc=5 +diff $srcdir/tests/substra.bbl tests/xsubstra.bbl || rc=6 + +## test for text.length$, text.prefix$ +cp $srcdir/tests/txtprfxa.aux tests/xtxtprfxa.aux +./bibtex8 tests/xtxtprfxa || rc=7 +diff $srcdir/tests/txtprfxa.bbl tests/xtxtprfxa.bbl || rc=8 + +## test for width$ +cp $srcdir/tests/widtha.aux tests/xwidtha.aux +./bibtex8 --csfile sort1.csf tests/xwidtha || rc=9 +diff $srcdir/tests/widtha.bbl tests/xwidtha.bbl || rc=10 + +## test for chr.to.int$, int.to.str$, int.to.chr$ +cp $srcdir/tests/chara.aux tests/xchara.aux +./bibtex8 tests/xchara || rc=11 +diff $srcdir/tests/chara.bbl tests/xchara.bbl || rc=12 + +## test for num.names$, format.name$ +cp $srcdir/tests/namea.aux tests/xnamea.aux +max_print_line=119 ./bibtex8 tests/xnamea || rc=13 +diff $srcdir/tests/namea.bbl tests/xnamea.bbl || rc=14 + + +exit $rc + |