remfiles07.at 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 path])
  21. AT_KEYWORDS([create remove-files remfiles07])
  22. AT_TAR_CHECK([
  23. AT_SORT_PREREQ
  24. mkdir tartest
  25. cd tartest
  26. mkdir foo
  27. echo foo/file > foo/file
  28. mkdir bar
  29. echo bar/file > bar/file
  30. decho A
  31. find|sort
  32. DIR=`pwd`
  33. decho B
  34. tar -cvf ../foo.tar --remove-files -C foo file -C $DIR/bar file
  35. decho C
  36. find|sort
  37. ],
  38. [0],
  39. [A
  40. .
  41. ./bar
  42. ./bar/file
  43. ./foo
  44. ./foo/file
  45. B
  46. file
  47. file
  48. C
  49. .
  50. ./bar
  51. ./foo
  52. ],
  53. [A
  54. B
  55. C
  56. ],[],[],[gnu])
  57. AT_CLEANUP