remfiles08.at 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Process this file with autom4te to create testsuite. -*- Autotest -*-
  2. # Test suite for GNU tar.
  3. # Copyright 2013 Free Software Foundation, Inc.
  4. #
  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. #
  10. # GNU tar is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. # Description: See remfiles06.at
  18. # Reported by: Nathan Stratton Treadway <[email protected]>
  19. # References: <[email protected]>
  20. AT_SETUP([remove with -C to absolute and relative paths])
  21. AT_KEYWORDS([incremental create remove-files remfiles08])
  22. AT_TAR_CHECK([
  23. mkdir foo
  24. mkdir bar
  25. echo foo/foo_file > foo/foo_file
  26. echo bar/bar_file > bar/bar_file
  27. decho A
  28. tar -cvf foo.tar --remove-files -C `pwd`/foo . -C ../bar .
  29. decho B
  30. ],
  31. [0],
  32. [A
  33. ./
  34. ./foo_file
  35. ./
  36. ./bar_file
  37. B
  38. .
  39. ./foo.tar
  40. ],
  41. [A
  42. B
  43. ],[],[],[gnu])
  44. AT_CLEANUP