ii-0041-test 907 B

123456789101112131415161718192021222324252627282930
  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 ii41-XXXXXXXX`
  11. outputdirfile=$tempfile.gz
  12. cp ${testdir}/ii-0041-input-dir-file.gz $outputdirfile || exit $?
  13. # when copying in distcheck, source will be readonly.
  14. chmod u+rw $outputdirfile || exit $?
  15. ${install_info} ${testdir}/ii-0041-input-info-file $outputdirfile || exit $?
  16. if findprog zdiff; then
  17. zdiff ${testdir}/ii-0041-expected-dir-file.gz $outputdirfile
  18. retval=$?
  19. else
  20. retval=77
  21. fi
  22. rm -f $tempfile $outputdirfile
  23. exit $retval