multiv08.at 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Test suite for GNU tar. -*- Autotest -*-
  2. # Copyright 2010-2023 Free Software Foundation, Inc.
  3. # This file is part of GNU tar.
  4. # GNU tar 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 of the License, or
  7. # (at your option) any later version.
  8. # GNU tar 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, see <http://www.gnu.org/licenses/>.
  14. # Description: Tar 1.23 would in some cases silently fail to create
  15. # a continuation header in multivolume archives.
  16. #
  17. # In this testcase, the file 'a' is 18.5 blocks long and the file 'b'
  18. # is 19.5 blocks long.
  19. AT_SETUP([multivolume header creation])
  20. AT_KEYWORDS([multivolume multiv multiv08])
  21. AT_TAR_CHECK([
  22. genfile --length 9472 --file a
  23. genfile --length 9984 --file b
  24. decho Creating
  25. tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
  26. decho Testing
  27. tar -tMR -f A.tar -f B.tar -f C.tar
  28. ],
  29. [0],
  30. [Creating
  31. Testing
  32. block 0: a
  33. block 21: b
  34. block 43: ** Block of NULs **
  35. ],
  36. [Creating
  37. Testing
  38. ],
  39. [],
  40. [],
  41. [gnu])
  42. AT_CLEANUP