multiv06.at 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright (C) 2008 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. # When volume size equals record size, swapping buffers in
  17. # new_volume triggers a call to flush_archive. The size left variables
  18. # must be corrected after that, which was not done in versions <= 1.20.
  19. # Reported by: Marek Kielar <[email protected]>
  20. # References: <[email protected]>
  21. AT_SETUP([Multivolumes with L=record_size])
  22. AT_KEYWORDS([multivolume multiv multiv06])
  23. AT_TAR_CHECK([
  24. exec <&-
  25. decho Creating file
  26. genfile --length 20139 --file file
  27. decho Creating archive
  28. tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
  29. decho Testing archive
  30. tar -t -M -farc.1 -farc.2 -farc.3],
  31. [0],
  32. [Creating file
  33. Creating archive
  34. Testing archive
  35. file
  36. ],
  37. [Creating file
  38. Creating archive
  39. Testing archive
  40. ],
  41. [],[],
  42. [gnu, pax])
  43. AT_CLEANUP