123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- AT_SETUP([append vs. create])
- AT_KEYWORDS([append append02 append-gnu])
- AT_TAR_CHECK([
- genfile --file file1
- genfile --file file2
- MTIME="--mtime=@0"
- if test $[]TEST_TAR_FORMAT = posix; then
- TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
- fi
- echo Creating archive.1
- tar $MTIME -cf archive.1 file1 file2
- echo Creating archive.2
- tar $MTIME -cf archive.2 -T /dev/null
- tar $MTIME -rf archive.2 file1
- tar $MTIME -rf archive.2 file2
- echo Comparing archives
- cmp archive.1 archive.2
- ],
- [0],
- [Creating archive.1
- Creating archive.2
- Comparing archives
- ])
- AT_CLEANUP
|