4
0

filerem02.at 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright (C) 2009 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, see <http://www.gnu.org/licenses/>.
  14. # Description: see filerem01.at
  15. # This test case checks if the tar exit code is still 2 if a
  16. # file or directory disappears that is explicitly mentioned
  17. # in the command line.
  18. AT_SETUP([toplevel file removed (ca. 24 seconds)])
  19. AT_KEYWORDS([create incremental filechange filerem filerem02])
  20. AT_TAR_CHECK([
  21. mkdir dir
  22. mkdir dir/sub
  23. genfile --file dir/file1
  24. genfile --file dir/sub/file2
  25. mkdir dir2
  26. genfile --file dir2/file1
  27. genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
  28. tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
  29. --checkpoint-action='echo' -c -f archive.tar \
  30. --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
  31. ],
  32. [2],
  33. [ignore],
  34. [ignore],[],[],[gnu, posix])
  35. # Ignore stdout and stderr because their contents depend on
  36. # the file system implementation.
  37. # Timing information: see filerem01.at
  38. AT_CLEANUP