4
0

extrac05.at 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright 2004, 2006-2007, 2013-2014, 2016-2017 Free Software
  4. # Foundation, Inc.
  5. # This file is part of GNU tar.
  6. # GNU tar is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 3 of the License, or
  9. # (at your option) any later version.
  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. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Problem: when extracting selected members from a PAX archive,
  17. # tar 1.14 incorrectly deemed all members to be sparse and
  18. # therefore was not able to properly skip them.
  19. #
  20. # Reported by: Luca Fibbi <[email protected]>
  21. #
  22. # References: <3.0.6.32.20040809113727.00a30e50@localhost>
  23. # http://lists.gnu.org/archive/html/bug-tar/2004-08/msg00008.html
  24. AT_SETUP([extracting selected members from pax])
  25. AT_KEYWORDS([extract extract05])
  26. AT_DATA([list],
  27. [jeden
  28. cztery
  29. ])
  30. AT_TAR_CHECK([
  31. genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || AT_SKIP_TEST
  32. genfile --length 118 --file jeden
  33. genfile --length 223 --file dwa
  34. genfile --length 517 --file trzy
  35. genfile --length 110 --file cztery
  36. tar cf archive jeden dwa trzy cztery || exit 1
  37. mkdir dir
  38. cd dir
  39. tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
  40. cd ..
  41. ],
  42. [0],
  43. [jeden
  44. cztery
  45. ],
  46. [],[],[],
  47. [posix])
  48. AT_CLEANUP