filerem01.at 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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, write to the Free Software
  14. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  15. # 02110-1301, USA.
  16. AT_SETUP([file removed as we read it (ca. 22 seconds)])
  17. AT_KEYWORDS([create incremental filechange filerem filerem01])
  18. AT_TAR_CHECK([
  19. mkdir dir
  20. mkdir dir/sub
  21. genfile --file dir/file1
  22. genfile --file dir/sub/file2
  23. genfile --run --checkpoint=3 --unlink dir/file1 -- \
  24. tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
  25. --checkpoint-action='echo' -c -f archive.tar \
  26. --listed-incremental db -v dir >/dev/null
  27. ],
  28. [0],
  29. [ignore],
  30. [tar: dir: Directory is new
  31. tar: dir/sub: Directory is new
  32. tar: dir/file1: File removed before we read it
  33. ],[],[],[gnu, posix])
  34. # Timing information:
  35. #
  36. # For -Hgnu the above command line takes about 8 seconds to execute and
  37. # produces:
  38. #
  39. # tar: dir: Directory is new
  40. # tar: dir/sub: Directory is new
  41. # dir/
  42. # tar: Write checkpoint 1
  43. # tar: Write checkpoint 2
  44. # dir/sub/
  45. # tar: Write checkpoint 3
  46. # tar: Write checkpoint 4
  47. # dir/file1
  48. # tar: Write checkpoint 5
  49. # dir/sub/file2
  50. # tar: Write checkpoint 6
  51. # tar: Write checkpoint 7
  52. # tar: Write checkpoint 8
  53. #
  54. # For -Hposix the above command line takes about 14 seconds to execute and
  55. # produces:
  56. #
  57. # ./tar: dir: Directory is new
  58. # ./tar: dir/sub: Directory is new
  59. # dir/
  60. # ./tar: Write checkpoint 1
  61. # ./tar: Write checkpoint 2
  62. # ./tar: Write checkpoint 3
  63. # dir/sub/
  64. # ./tar: Write checkpoint 4
  65. # ./tar: Write checkpoint 5
  66. # ./tar: Write checkpoint 6
  67. # dir/file1
  68. # ./tar: Write checkpoint 7
  69. # ./tar: Write checkpoint 8
  70. # ./tar: Write checkpoint 9
  71. # dir/sub/file2
  72. # ./tar: Write checkpoint 10
  73. # ./tar: Write checkpoint 11
  74. # ./tar: Write checkpoint 12
  75. # ./tar: Write checkpoint 13
  76. # ./tar: Write checkpoint 14
  77. AT_CLEANUP