delete03.at 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright (C) 2004, 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. AT_SETUP([deleting members with long names])
  17. AT_KEYWORDS([delete delete03])
  18. m4_define([PREFIX],[This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX])
  19. AT_TAR_CHECK([
  20. prefix=PREFIX
  21. rm -f $prefix*
  22. for i in 1 2 3 4 5 6 7 8 9
  23. do touch $prefix$i
  24. done
  25. tar -cf archive ./$prefix* &&
  26. tar --delete -f archive ./${prefix}5 &&
  27. tar -tf archive
  28. ],
  29. [0],
  30. [./PREFIX[]1
  31. ./PREFIX[]2
  32. ./PREFIX[]3
  33. ./PREFIX[]4
  34. ./PREFIX[]6
  35. ./PREFIX[]7
  36. ./PREFIX[]8
  37. ./PREFIX[]9
  38. ],[],[],[],[gnu, oldgnu, posix])
  39. AT_CLEANUP