multiv08.at 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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: Tar 1.23 would in some cases silently fail to create
  14. # a continuation header in multivolume archives.
  15. #
  16. # In this testcase, the file `a' is 18.5 blocks long and the file `b'
  17. # is 19.5 blocks long.
  18. AT_SETUP([multivolume header creation])
  19. AT_KEYWORDS([multivolume multiv multiv08])
  20. AT_TAR_CHECK([
  21. genfile --length 9472 --file a
  22. genfile --length 9984 --file b
  23. decho Creating
  24. tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
  25. decho Testing
  26. tar -tMR -f A.tar -f B.tar -f C.tar
  27. ],
  28. [0],
  29. [Creating
  30. Testing
  31. block 0: a
  32. block 21: b
  33. block 43: ** Block of NULs **
  34. ],
  35. [Creating
  36. Testing
  37. ],
  38. [],
  39. [],
  40. [gnu])
  41. AT_CLEANUP