12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- AT_SETUP([extract over symlinks])
- AT_KEYWORDS([extract extrac13 chdir])
- AT_TAR_CHECK([
- mkdir src dst1 dst2 dst3
- echo file1 >src/file1
- ln -s target1 dst1/file1
- echo target1 >dst1/target1
- echo target1 >target1
- tar -cf archive.tar -C src . &&
- tar -xf archive.tar -C dst1 --warning=no-timestamp &&
- diff src/file1 dst1/file1 &&
- diff target1 dst1/target1
- ln -s target1 dst2/file1
- echo target1 >dst2/target1
- tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
- diff src/file1 dst2/file1 &&
- diff target1 dst2/target1
- ln -s target1 dst3/file1
- echo target1 >dst3/target1
- tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
- diff src/file1 dst3/file1 &&
- diff src/file1 dst3/target1
- ],
- [0],[],[],[],[],[gnu])
- AT_CLEANUP
|