123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- AT_SETUP([working -l with
- AT_KEYWORDS([hardlinks link03])
- m4_define([create_files],[
- genfile -l 64 -f file1
- ln file1 file2
- ln file2 file3
- ln file3 file4
- ])
- AT_TAR_CHECK([
- create_files
- echo archive.1
- tar -c -f archive.1 -l
- create_files
- echo archive.2
- tar -c -f archive.2 -l
- echo testing archive.2
- tar tfv archive.2 | sed -n 's/.*file[[2-3]] link to //p'
- ],
- [0],
- [archive.1
- archive.2
- testing archive.2
- file1
- file1
- ],
- [tar: Missing links to 'file1'.
- ])
- AT_CLEANUP
|