12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- AT_SETUP([chained renames])
- AT_KEYWORDS([incremental rename06 rename])
- AT_TAR_CHECK([
- AT_SORT_PREREQ
- decho Creating directory structure
- mkdir test test/d1 test/d2
- genfile
- genfile
- decho First dump
- tar -c -g 0.snar -C test -f backup0.tar .
- decho Altering directory structure
- genfile
- mv test/d1 test/d3
- mv test/d2 test/d1
- decho Second dump
- cp 0.snar 1.snar
- tar -vc -g 1.snar -C test -f backup1.tar .
- mkdir test1
- decho First extract
- tar -C test1 -x -g /dev/null -f backup0.tar
- decho Second extract
- tar -C test1 -x -g /dev/null -f backup1.tar
- decho Resulting directory
- find test1 | sort
- ],
- [0],
- [Creating directory structure
- First dump
- Altering directory structure
- Second dump
- ./
- ./d1/
- ./d3/
- ./d1/file3
- First extract
- Second extract
- Resulting directory
- test1
- test1/d1
- test1/d1/file2
- test1/d1/file3
- test1/d3
- test1/d3/file1
- ],
- [Creating directory structure
- First dump
- Altering directory structure
- Second dump
- tar: ./d1: Directory has been renamed from './d2'
- tar: ./d3: Directory has been renamed from './d1'
- First extract
- Second extract
- Resulting directory
- ],[],[],[gnu, oldgnu, posix])
- AT_CLEANUP
|