#! /bin/sh # Copyright (C) 2011-2013 Peter Breitenlohner # You may freely use, modify and/or distribute this file. rm -rf play* ./dviselect =25 $srcdir/tests/play.dvi playsel.dvi \ 2>playsel.2 \ && exit 1 test -r playsel.dvi \ && exit 1 diff playsel.2 $srcdir/tests/playnot.2 \ || exit 1 rm -rf play* ./dviselect 15:25 $srcdir/tests/play.dvi playsel.dvi \ 2>playsel.2 \ && diff playsel.2 $srcdir/tests/playsel.2 \ || exit 1 rm -rf play* ./dviselect =5:15 $srcdir/tests/play.dvi playsel.dvi \ 2>playsel.2 \ && diff playsel.2 $srcdir/tests/playsel.2 \ || exit 1 echo dviselect tests OK rm -rf play* cat $srcdir/tests/play.dvi | ./dviselect =25 >playsel.dvi \ 2>playsel.2 \ && exit 1 touch playnot.dvi \ && diff playsel.dvi playnot.dvi \ && diff playsel.2 $srcdir/tests/playnot.2 \ || exit 1 rm -rf play* cat $srcdir/tests/play.dvi | ./dviselect =5:15 >playsel.dvi \ 2>playsel.2 \ && diff playsel.2 $srcdir/tests/playsel.2 \ || exit 1 rm -rf play* ./dviselect =25 <$srcdir/tests/play.dvi >playsel.dvi \ 2>playsel.2 \ && exit 1 touch playnot.dvi \ && diff playsel.dvi playnot.dvi \ && diff playsel.2 $srcdir/tests/playnot.2 \ || exit 1 rm -rf play* ./dviselect =5:15 <$srcdir/tests/play.dvi >playsel.dvi \ 2>playsel.2 \ && diff playsel.2 $srcdir/tests/playsel.2 \ || exit 1 echo dviselect with stdin and stdout tests OK ./dviselect =5:15 $srcdir/tests/playtate.dvi playselt.dvi \ 2>playsel.3 \ && diff playsel.3 $srcdir/tests/playsel.3 \ || exit 1 echo dviselect pTeX tests OK ./dvibook -s4 playsel.dvi playbook.dvi \ 2>playbook.2 \ && diff playbook.2 $srcdir/tests/playbook.2 \ || exit 1 echo dvibook tests OK rm -f playbook.2 cat playsel.dvi | ./dvibook -s4 >playbook.dvi \ 2>playbook.2 \ && diff playbook.2 $srcdir/tests/playbook.2 \ || exit 1 rm -f playbook.2 ./dvibook -s4 playbook.dvi \ 2>playbook.2 \ && diff playbook.2 $srcdir/tests/playbook.2 \ || exit 1 echo dvibook with stdin and stdout tests OK ./dvibook -s4 playselt.dvi playbook.dvi \ 2>playbook.3 \ && diff playbook.3 $srcdir/tests/playbook.3 \ || exit 1 ./dvibook -r -s4 playselt.dvi playbook.dvi \ 2>playbook.4 \ && diff playbook.4 $srcdir/tests/playbook.4 \ || exit 1 echo dvibook pTeX tests OK ./dviselect =5:7 $srcdir/tests/play.dvi playsel1.dvi \ 2>playconc.2 \ && ./dviselect 23:25 $srcdir/tests/play.dvi playsel2.dvi \ 2>>playconc.2 \ && ./dviconcat -o playconc.dvi playsel2.dvi playsel1.dvi \ 2>>playconc.2 \ && diff playconc.2 $srcdir/tests/playconc.2 \ || exit 1 echo dviconcat tests OK ./dviselect =5:7 $srcdir/tests/playtate.dvi playsel1.dvi \ 2>playconc.3 \ && ./dviselect 23:25 $srcdir/tests/playtate.dvi playsel2.dvi \ 2>>playconc.3 \ && ./dviconcat -o playconc.dvi playsel2.dvi playsel1.dvi \ 2>>playconc.3 \ && diff playconc.3 $srcdir/tests/playconc.3 \ || exit 1 echo dviconcat pTeX tests OK ./dvitodvi '4:500@0+1(16.5cm,0)+2(0,28cm)+3(16.5cm,28cm)' playsel.dvi playdvi.dvi \ 2>playdvi.2 \ && diff playdvi.2 $srcdir/tests/playdvi.2 \ || exit 1 echo dvitodvi tests OK rm -f playdvi.2 cat playsel.dvi | ./dvitodvi '4:500@0+1(16.5cm,0)+2(0,28cm)+3(16.5cm,28cm)' -o playdvi.dvi \ 2>playdvi.2 \ && diff playdvi.2 $srcdir/tests/playdvi.2 \ || exit 1 rm -f playdvi.2 ./dvitodvi '4:500@0+1(16.5cm,0)+2(0,28cm)+3(16.5cm,28cm)' -o playdvi.dvi playdvi.2 \ && diff playdvi.2 $srcdir/tests/playdvi.2 \ || exit 1 echo dvitodvi reading stdin tests OK ./dvitodvi '4:500@0+1(16.5cm,0)+2(0,28cm)+3(16.5cm,28cm)' playselt.dvi playdvi.dvi \ 2>playdvi.3 \ && diff playdvi.3 $srcdir/tests/playdvi.3 \ || exit 1 echo dvitodvi pTeX tests OK