extrac05.at 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 3, or (at your option)
  7. # any later version.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software
  14. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  15. # 02110-1301, USA.
  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 --length 118 --file jeden
  32. genfile --length 223 --file dwa
  33. genfile --length 517 --file trzy
  34. genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
  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 || exit 1
  40. cd ..
  41. ],
  42. [0],
  43. [jeden
  44. cztery
  45. ],
  46. [],[],[],
  47. [posix])
  48. AT_CLEANUP