delete04.at 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright (C) 2004, 2006, 2007 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. # 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