ii-0013-test 816 B

1234567891011121314151617181920212223242526272829
  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. outputdirfile=`mktemp ii13-XXXXXXXX`
  11. cp ${testdir}/ii-0013-input-dir-file $outputdirfile
  12. if [ "x$?" != "x0" ]; then
  13. exit 1
  14. fi
  15. ${install_info} --keep-old ${testdir}/ii-0013-input-info-file $outputdirfile
  16. retval=$?
  17. if [ "x$retval" != "x0" ]; then
  18. exit $retval
  19. fi
  20. diff ${testdir}/ii-0013-expected-dir-file $outputdirfile
  21. retval=$?
  22. rm -f $outputdirfile
  23. exit $retval