incr06.at 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. AT_SETUP([incremental dumps of nested directories])
  15. AT_KEYWORDS([incremental incr06])
  16. AT_TAR_CHECK([
  17. mkdir dir
  18. mkdir dir/sub
  19. mkdir dir/sub/a
  20. mkdir dir/sub/b
  21. genfile --file dir/file1
  22. genfile --file dir/sub/file2
  23. genfile --file dir/sub/a/file3
  24. dbfile=`pwd`/db
  25. echo Level 0 . sub
  26. tar -c -f archive-0.1.tar -g $dbfile.1 -C dir -v --warning=no-new-dir . sub
  27. echo Level 0 sub .
  28. tar -c -f archive-0.2.tar -g $dbfile.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 $dbfile.1 -C dir -v --warning=no-new-dir . sub
  33. echo Level 1 sub .
  34. tar -c -f archive-1.2.tar -g $dbfile.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