delete04.at 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright 2004, 2006-2007, 2013-2014, 2016-2017 Free Software
  4. # Foundation, Inc.
  5. # This file is part of GNU tar.
  6. # GNU tar is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 3 of the License, or
  9. # (at your option) any later version.
  10. # GNU tar is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Deleting a large last member was destroying earlier members.
  17. AT_SETUP([deleting a large last member])
  18. AT_KEYWORDS([delete delete04])
  19. AT_TAR_CHECK([
  20. genfile -l 3 -f file1
  21. genfile -l 5 -f file2
  22. genfile -l 3 -f file3
  23. genfile -l 6 -f file4
  24. genfile -l 24 -f file5
  25. genfile -l 13 -f file6
  26. genfile -l 1385 -f file7
  27. genfile -l 30 -f file8
  28. genfile -l 10 -f file9
  29. genfile -l 256000 -f file10
  30. tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
  31. tar f archive --delete file10
  32. tar tf archive
  33. ],
  34. [0],
  35. [file1
  36. file2
  37. file3
  38. file4
  39. file5
  40. file6
  41. file7
  42. file8
  43. file9
  44. ])
  45. AT_CLEANUP