extrac05.at 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright 2004-2023 Free Software Foundation, Inc.
  4. # This file is part of GNU tar.
  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. # GNU tar is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. # Problem: when extracting selected members from a PAX archive,
  16. # tar 1.14 incorrectly deemed all members to be sparse and
  17. # therefore was not able to properly skip them.
  18. #
  19. # Reported by: Luca Fibbi <[email protected]>
  20. #
  21. # References: <3.0.6.32.20040809113727.00a30e50@localhost>
  22. # http://lists.gnu.org/archive/html/bug-tar/2004-08/msg00008.html
  23. AT_SETUP([extracting selected members from pax])
  24. AT_KEYWORDS([extract extract05])
  25. AT_DATA([list],
  26. [jeden
  27. cztery
  28. ])
  29. AT_TAR_CHECK([
  30. genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || AT_SKIP_TEST
  31. genfile --length 118 --file jeden
  32. genfile --length 223 --file dwa
  33. genfile --length 517 --file trzy
  34. genfile --length 110 --file cztery
  35. tar cf archive jeden dwa trzy cztery || exit 1
  36. mkdir dir
  37. cd dir
  38. tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
  39. cd ..
  40. ],
  41. [0],
  42. [jeden
  43. cztery
  44. ],
  45. [],[],[],
  46. [posix])
  47. AT_CLEANUP