1 : 2 # 3 # Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 4 # Universitaet Berlin. See the accompanying file "COPYRIGHT" for 5 # details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 6 # 7 if [ ! -f 1.inp ] ; then 8 echo Sorry, but we cannot provide the test data with this release. 9 exit 10 fi 11 12 echo -n 'Linear to code: ' 13 for i in 1 2 3 4 14 do 15 echo -n $i.. 16 ./lin2cod < $i.inp | cmp - $i.cod 17 done 18 echo "" 19 20 echo -n 'Code to linear: ' 21 for i in 1 2 3 4 22 do 23 echo -n $i.. 24 ./cod2lin < $i.cod | cmp - $i.out 25 done 26 echo "" 27 28 echo -n 'Toast: ' 29 for i in 1 2 3 4 30 do 31 echo -n $i.. 32 ../bin/toast -l < $i.inp | ../bin/toast -dl | cmp - $i.out 33 done 34 echo "" 35