4
0

multiv07.at 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Test suite for GNU tar. -*- Autotest -*-
  2. # Copyright (C) 2010 Free Software Foundation, Inc.
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 3, or (at your option)
  6. # any later version.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. # You should have received a copy of the GNU General Public License
  12. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. # Description: When creating POSIX multivolume archives, tar may in
  14. # some cases write an extended header at the end of one volume, and
  15. # the corresponding ustar header at the beginning of the next volume.
  16. # Such archives do not fully comply with the POSIX specs, but tar must
  17. # be able to read them anyway. This is what this script tests.
  18. #
  19. # See function try_new_volume, in file src/buffer.c near line 1227
  20. # for additional details.
  21. AT_SETUP([volumes split at an extended header])
  22. AT_KEYWORDS([multivolume multiv multiv07 xsplit])
  23. AT_CHECK([
  24. AT_XFAIL_IF(test -f $[]XFAILFILE)
  25. AT_TARBALL_PREREQ([xsplit-1.tar],[0e008c84c517e48fbf23ca6a7033cde6])
  26. AT_TARBALL_PREREQ([xsplit-2.tar],[03150b9852d285458f43734e9e0b9a45])
  27. exec <&-
  28. cd $TEST_DATA_DIR
  29. tar -t -M -fxsplit-1.tar -fxsplit-2.tar
  30. ],
  31. [0],
  32. [Archive volumes split at an extended header Volume 1
  33. foo
  34. bar
  35. ])
  36. AT_CLEANUP