diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-01-16 11:08:24 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-01-16 11:08:24 +0000 |
commit | 8b5dea01ab72973a3e09ee9926efede385f68319 (patch) | |
tree | d82a25b31e4f977bcf8d8b3d294eeec98a17d7d5 /Build/source/texk/web2c/omegaware/odvicopy.test | |
parent | 5fa737a2b47b8793fb8ce0f5f4869e0c57d53758 (diff) |
ODVIcopy: Bug fix: do not ignore -page-start and -max-pages. Additional test cases
git-svn-id: svn://tug.org/texlive/trunk@36072 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/omegaware/odvicopy.test')
-rwxr-xr-x | Build/source/texk/web2c/omegaware/odvicopy.test | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/omegaware/odvicopy.test b/Build/source/texk/web2c/omegaware/odvicopy.test index 9b836657c25..bf0f159532c 100755 --- a/Build/source/texk/web2c/omegaware/odvicopy.test +++ b/Build/source/texk/web2c/omegaware/odvicopy.test @@ -1,21 +1,40 @@ #! /bin/sh -# Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org> +# Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org> # You may freely use, modify and/or distribute this file. tests=omegaware/tests test -d $tests || mkdir -p $tests +echo && echo "*** odvicopy -help" +./odvicopy -help || exit 1 + +echo && echo "*** odvicopy -version" +./odvicopy -version || exit 1 + +# Test page selection +# +echo && echo "*** odvicopy --p=*.*.2 --max=1 pagenum.dvi xpagenum.dvi >xpagenum.log" +TEXMFCNF=$srcdir/../kpathsea \ + TFMFONTS=$srcdir/tests \ + ./odvicopy --p=\*.\*.2 --max=1 $srcdir/tests/pagenum.dvi $tests/xpagenum.dvi \ + >$tests/xpagenum.log || exit 1 + +echo && echo "*** grep '1 page written\.$' xpagenum.log" +grep '1 page written\.$' $tests/xpagenum.log || exit 1 + # First a straight copy # rm -f ofont*vf +echo && echo "*** odvicopy ofontd0 xofontd1 (without VF/OVF files)" TEXMFCNF=$srcdir/../kpathsea \ OFMFONTS=$srcdir/$tests \ OVFFONTS=. \ ./odvicopy $srcdir/$tests/ofontd0 $tests/xofontd1 || exit 1 +echo && echo "*** odvitype xofontd1 >xofontd1.typ" TEXMFCNF=$srcdir/../kpathsea \ OFMFONTS=$srcdir/$tests \ ./odvitype $tests/xofontd1 | sed '1s/ (.*)$//' >$tests/xofontd1.typ || exit 1 @@ -26,26 +45,30 @@ diff $srcdir/$tests/ofontd1.typ $tests/xofontd1.typ || exit 1 # cp $srcdir/$tests/ofontv*vf . +echo && echo "*** odvicopy ofontd1 xofontd2 (with VF/OVF files for ofontv[4-6])" TEXMFCNF=$srcdir/../kpathsea \ OFMFONTS=$srcdir/$tests \ OVFFONTS=. \ ./odvicopy $tests/xofontd1 $tests/xofontd2 || exit 1 +echo && echo "*** odvitype xofontd2 >xofontd2.typ" TEXMFCNF=$srcdir/../kpathsea \ OFMFONTS=$srcdir/$tests \ ./odvitype $tests/xofontd2 | sed '1s/ (.*)$//' >$tests/xofontd2.typ || exit 1 diff $srcdir/$tests/ofontd2.typ $tests/xofontd2.typ || exit 1 -# Finally with OVF files for ofontr[1-3] and ofontv[4-6] +# Finally with VF/OVF files for ofontr[1-3] and ofontv[4-6] # cp $srcdir/$tests/ofontr*vf . +echo && echo "*** odvicopy ofontd0 xofontd3 (with VF/OVF files for ofontr[1-3] and ofontv[4-6])" TEXMFCNF=$srcdir/../kpathsea \ OFMFONTS=$srcdir/$tests \ OVFFONTS=. \ ./odvicopy $srcdir/$tests/ofontd0 $tests/xofontd3 || exit 1 +echo && echo "*** odvitype xofontd3 >xofontd3.typ" TEXMFCNF=$srcdir/../kpathsea \ OFMFONTS=$srcdir/$tests \ ./odvitype $tests/xofontd3 | sed '1s/ (.*)$//' >$tests/xofontd3.typ || exit 1 |