run 653 B

12345678910111213141516171819202122232425262728293031323334
  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. echo -n 'Linear to code: '
  12. for i in 1 2 3 4
  13. do
  14. echo -n $i..
  15. ./lin2cod < $i.inp | cmp - $i.cod
  16. done
  17. echo ""
  18. echo -n 'Code to linear: '
  19. for i in 1 2 3 4
  20. do
  21. echo -n $i..
  22. ./cod2lin < $i.cod | cmp - $i.out
  23. done
  24. echo ""
  25. echo -n 'Toast: '
  26. for i in 1 2 3 4
  27. do
  28. echo -n $i..
  29. ../bin/toast -l < $i.inp | ../bin/toast -dl | cmp - $i.out
  30. done
  31. echo ""