ii-0050-test 918 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh -x
  2. # This file is free software; as a special exception the author gives
  3. # unlimited permission to copy and/or distribute it, with or without
  4. # modifications, as long as this notice is preserved.
  5. #
  6. # This program is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  8. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. . ./defs || exit 1
  10. tempfile=`mktemp ii50-XXXXXXXX`
  11. outputdirfile=$tempfile.gz
  12. cp ${testdir}/ii-0050-input-dir-file.gz $outputdirfile || exit $?
  13. # when copying in distcheck, source will be readonly.
  14. chmod u+rw $outputdirfile || exit $?
  15. ${install_info} --remove ${testdir}/ii-0050-input-info-file $outputdirfile \
  16. || exit $?
  17. if findprog zdiff; then
  18. zdiff ${testdir}/ii-0050-expected-dir-file.gz $outputdirfile
  19. retval=$?
  20. else
  21. retval=77
  22. fi
  23. rm -f $tempfile $outputdirfile
  24. exit $retval