summaryrefslogtreecommitdiff
path: root/testsuite/tar
diff options
context:
space:
mode:
authorDenis Vlasenko2006-09-02 18:40:10 +0000
committerDenis Vlasenko2006-09-02 18:40:10 +0000
commit06ab5fb6b9d641ee184facb81eaee718e418d9b2 (patch)
tree20ca95fe4097b5205c9d90b31bd6284e485885d7 /testsuite/tar
parentbcf4908e714644add18fad1614e8b0dea071960d (diff)
downloadbusybox-06ab5fb6b9d641ee184facb81eaee718e418d9b2.zip
busybox-06ab5fb6b9d641ee184facb81eaee718e418d9b2.tar.gz
tar: tar xf foo.tar dir/dir did not extract all subdirs.
Added testsuite entry for this
Diffstat (limited to 'testsuite/tar')
-rw-r--r--testsuite/tar/tar-extracts-all-subdirs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tar/tar-extracts-all-subdirs b/testsuite/tar/tar-extracts-all-subdirs
new file mode 100644
index 0000000..886c37c
--- /dev/null
+++ b/testsuite/tar/tar-extracts-all-subdirs
@@ -0,0 +1,12 @@
+# FEATURE: CONFIG_FEATURE_TAR_CREATE
+mkdir -p foo/{1,2,3}
+mkdir -p foo/1/{10,11}
+mkdir -p foo/1/10/{100,101,102}
+tar cf foo.tar -C foo .
+rm -rf foo/*
+busybox tar xf foo.tar -C foo ./1/10
+find foo | sort >logfile.bb
+rm -rf foo/*
+tar xf foo.tar -C foo ./1/10
+find foo | sort >logfile.gnu
+cmp logfile.gnu logfile.bb