ii-0054-test 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 ii54-XXXXXXXX`
  11. cp ${testdir}/ii-0054-input-dir-file $outputdirfile || exit $?
  12. # test compressed input file names with spaces (but avoid having such a
  13. # name in the repository).
  14. info_with_space='ii54 input.info.gz'
  15. cp ${testdir}/ii-0054-input-info-file.gz "$info_with_space"
  16. ${install_info} "$info_with_space" $outputdirfile || exit $?
  17. diff ${testdir}/ii-0054-expected-dir-file $outputdirfile || exit $?
  18. rm -f "$info_with_space" $outputdirfile
  19. exit $retval
  20. #output_dir=`mktemp 'ii 54'-XXXXXXXX`
  21. #outputdirfile=`mktemp ii53-XXXXXXXX`
  22. #
  23. ## Test for spaces in target directory name.
  24. #${install_info} --info-dir="${output_dir}" ${testdir}/ii-0054-input-info-file
  25. #test $? = 0 || exit 2
  26. #
  27. #diff ${testdir}/ii-0053-expected-dir-file $outputdirfile
  28. #test $? = 0 || exit 3
  29. #
  30. #rm -f $outputdirfile
  31. #exit 0
  32. #