incr10.at 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. AT_SETUP([concatenated incremental archives (deletes)])
  18. AT_KEYWORDS([incremental concat cat incr10 chdir])
  19. # Description: Extraction from concatenated incremental archives
  20. # produced spurious error messages when trying to set file ownership
  21. # and permissions on deleted directories.
  22. # Reported by: Alex Efros <[email protected]>
  23. # References: <[email protected]>
  24. # http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00003.html
  25. AT_TAR_CHECK([
  26. AT_CHECK_TIMESTAMP
  27. mkdir in
  28. mkdir in/dir
  29. decho Level 0
  30. tar -cvf 1.tar -g snap -C in .
  31. rmdir in/dir
  32. decho Level 1
  33. tar -cvf 2.tar -g snap -C in .
  34. cp 1.tar full.tar
  35. decho Concat
  36. tar -A 2.tar -f full.tar -g /dev/null
  37. decho Extract
  38. mkdir out
  39. tar -xvf full.tar -g /dev/null -C out
  40. ],
  41. [0],
  42. [Level 0
  43. ./
  44. ./dir/
  45. Level 1
  46. ./
  47. Concat
  48. Extract
  49. ./
  50. ./dir/
  51. ./
  52. tar: Deleting './dir'
  53. ],
  54. [Level 0
  55. tar: .: Directory is new
  56. tar: ./dir: Directory is new
  57. Level 1
  58. Concat
  59. Extract
  60. ],[],[],[gnu])
  61. AT_CLEANUP