Add tests for "bsdtar -t". These are useful primarily because they test
the archive_read_data_skip code.
This commit is contained in:
parent
7b9c4b3086
commit
a92fcfb26e
@ -337,6 +337,22 @@ mkdir copy-bzip2-bunzip2
|
||||
(cd original && ${BSDTAR} -cyf - .) | (cd copy-bzip2-bunzip2; ${BSDTAR} -xf -)
|
||||
diff -r original copy-bzip2-bunzip2 || echo XXX FAILED XXX
|
||||
|
||||
# Ensure that archive listing works
|
||||
echo " bsdtar -c | bsdtar -t"
|
||||
(cd original && find .) | sort > list-original
|
||||
(cd original && ${BSDTAR} -cf - .) | ${BSDTAR} -tf - | sort > list-default
|
||||
diff list-original list-default || echo XXX FAILED XXX
|
||||
|
||||
# Ensure that listing of deflated archives works
|
||||
echo " bsdtar -cz | bsdtar -t"
|
||||
(cd original && ${BSDTAR} -czf - .) | ${BSDTAR} -tf - | sort > list-gzip
|
||||
diff list-original list-gzip || echo XXX FAILED XXX
|
||||
|
||||
# Ensure that listing of bzip2ed archives works
|
||||
echo " bsdtar -cy | bsdtar -t"
|
||||
(cd original && ${BSDTAR} -cyf - .) | ${BSDTAR} -tf - | sort > list-bzip2
|
||||
diff list-original list-bzip2 || echo XXX FAILED XXX
|
||||
|
||||
# Filtering exercises different areas of the library.
|
||||
echo " Convert tar archive to a tar archive"
|
||||
mkdir filter-tar-tar
|
||||
|
Loading…
Reference in New Issue
Block a user