summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar/test/Makefile
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2008-11-10 05:04:55 +0000
committerkientzle <kientzle@FreeBSD.org>2008-11-10 05:04:55 +0000
commit19a4817b26349c90c83c0e1bee2792d456160309 (patch)
tree0dd200618fa0faf37a0a4f3baeadc6ca681005ea /usr.bin/tar/test/Makefile
parent48d5b1d6102bf6d4b152adb78c42dbaef67bb4de (diff)
downloadFreeBSD-src-19a4817b26349c90c83c0e1bee2792d456160309.zip
FreeBSD-src-19a4817b26349c90c83c0e1bee2792d456160309.tar.gz
Test --strip-components and fix it to actually work. Jaakko did a
good job writing this test; it exercises a lot of subtle cases. The trickiest one is that a hardlink to something that didn't get extracted should not itself be extracted. In some sense, this is not the desired behavior (we'd rather restore the file), but it's the best you can do in a single-pass restore of a tar archive. The test here should be extended to exercise cpio and newc formats as well, since their hardlink models are different, which will lead to different handling of some of these edge cases. Submitted by: Jaakko Heinonen MFC after: 30 days
Diffstat (limited to 'usr.bin/tar/test/Makefile')
-rw-r--r--usr.bin/tar/test/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/tar/test/Makefile b/usr.bin/tar/test/Makefile
index fce819c..c05aaf9 100644
--- a/usr.bin/tar/test/Makefile
+++ b/usr.bin/tar/test/Makefile
@@ -18,6 +18,7 @@ TESTS= \
test_option_q.c \
test_patterns.c \
test_stdio.c \
+ test_strip_components.c \
test_symlink_dir.c \
test_version.c
OpenPOWER on IntegriCloud