4
0

incr06.at 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright 2009, 2013-2014 Free Software Foundation, Inc.
  4. # This file is part of GNU tar.
  5. # GNU tar is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3 of the License, or
  8. # (at your option) any later version.
  9. # GNU tar is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. AT_SETUP([incremental dumps of nested directories])
  16. AT_KEYWORDS([incremental incr06])
  17. AT_TAR_CHECK([
  18. mkdir dir
  19. mkdir dir/sub
  20. mkdir dir/sub/a
  21. mkdir dir/sub/b
  22. genfile --file dir/file1
  23. genfile --file dir/sub/file2
  24. genfile --file dir/sub/a/file3
  25. echo Level 0 . sub
  26. tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
  27. echo Level 0 sub .
  28. tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
  29. mkdir dir/c
  30. genfile --file dir/sub/b/file4
  31. echo Level 1 . sub
  32. tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
  33. echo Level 1 sub .
  34. tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
  35. ],
  36. [0],
  37. [Level 0 . sub
  38. ./
  39. sub/
  40. sub/a/
  41. sub/b/
  42. ./file1
  43. sub/file2
  44. sub/a/file3
  45. Level 0 sub .
  46. ./
  47. sub/
  48. sub/a/
  49. sub/b/
  50. ./file1
  51. sub/file2
  52. sub/a/file3
  53. Level 1 . sub
  54. ./
  55. ./c/
  56. sub/
  57. sub/a/
  58. sub/b/
  59. sub/b/file4
  60. Level 1 sub .
  61. ./
  62. ./c/
  63. sub/
  64. sub/a/
  65. sub/b/
  66. sub/b/file4
  67. ],[],[],[],[gnu, oldgnu, posix])
  68. AT_CLEANUP