listed04.at 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright 2010-2023 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. # This checks for the bug reported by Martin Weigel
  16. # <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00071.html>.
  17. # The test is derived from the ideas in Jean-Louis Martineau's followup email
  18. # <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00087.html>.
  19. AT_SETUP([--listed-incremental and --one-file-system])
  20. AT_KEYWORDS([listed incremental listed04])
  21. AT_TAR_CHECK([
  22. AT_CHECK_TIMESTAMP
  23. mkdir dir
  24. echo a >dir/a
  25. echo b >dir/b
  26. tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
  27. tar -tf archive.tar || exit
  28. ],
  29. [0],
  30. [dir/
  31. dir/a
  32. dir/b
  33. dir/
  34. dir/a
  35. dir/b
  36. ],
  37. [tar: dir: Directory is new
  38. ],[],[],[gnu])
  39. AT_CLEANUP