incr11.at 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright 2015-2023 Free Software Foundation, Inc.
  4. #
  5. # GNU tar is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # GNU tar is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. # Description: Extraction from concatenated incremental archives
  18. # produced spurious error messages when trying to set file ownership
  19. # and permissions on renamed directories
  20. # Reported by: Alex Efros <[email protected]>
  21. # References: <[email protected]>
  22. # http://lists.gnu.org/archive/html/bug-tar/2015-11/msg00033.html
  23. AT_SETUP([concatenated incremental archives (renames)])
  24. AT_KEYWORDS([incremental concat cat incr11 chdir])
  25. AT_TAR_CHECK([
  26. AT_CHECK_TIMESTAMP
  27. AT_SORT_PREREQ
  28. AT_TAR_MKHIER([data/dir],[file])
  29. decho Level 0
  30. tar -cvf full.tar -g snap -C data .
  31. decho Level 1
  32. mv data/dir data/dir2
  33. tar -cvf incr.tar -g snap -C data .
  34. decho Concat
  35. cp full.tar full2.tar
  36. tar -A -f full2.tar incr.tar
  37. decho Extract
  38. mkdir out
  39. tar -xvf full2.tar -g /dev/null -C out
  40. decho List
  41. find out | sort
  42. ],
  43. [0],
  44. [Level 0
  45. ./
  46. ./dir/
  47. ./dir/file
  48. Level 1
  49. ./
  50. ./dir2/
  51. Concat
  52. Extract
  53. ./
  54. ./dir/
  55. ./dir/file
  56. ./
  57. ./dir2/
  58. List
  59. out
  60. out/dir2
  61. out/dir2/file
  62. ],
  63. [Level 0
  64. tar: .: Directory is new
  65. tar: ./dir: Directory is new
  66. Level 1
  67. tar: ./dir2: Directory has been renamed from './dir'
  68. Concat
  69. Extract
  70. List
  71. ],[],[],[gnu])
  72. AT_CLEANUP