summaryrefslogtreecommitdiff
path: root/release/src/router/busybox/testsuite/tar
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-01-03 12:04:58 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2015-01-03 12:04:58 +0100
commit008d0be72b2f160382c6e880765e96b64a050c65 (patch)
tree36f48a98a3815a408e2ce1693dd182af90f80305 /release/src/router/busybox/testsuite/tar
parent611becfb8726c60cb060368541ad98191d4532f5 (diff)
downloadtomato-008d0be72b2f160382c6e880765e96b64a050c65.tar.gz
tomato-008d0be72b2f160382c6e880765e96b64a050c65.tar.bz2
imported original firmware WRT54GL_v4.30.11_11_US
Diffstat (limited to 'release/src/router/busybox/testsuite/tar')
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-archives-multiple-files6
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-complains-about-missing-file4
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-demands-at-least-one-ctx1
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-demands-at-most-one-ctx1
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-extracts-file5
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-extracts-from-standard-input5
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-extracts-multiple-files5
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-extracts-to-standard-output3
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-handles-cz-options4
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list5
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-handles-exclude-and-extract-lists7
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-handles-multiple-X-options8
-rwxr-xr-xrelease/src/router/busybox/testsuite/tar/tar-handles-nested-exclude8
13 files changed, 62 insertions, 0 deletions
diff --git a/release/src/router/busybox/testsuite/tar/tar-archives-multiple-files b/release/src/router/busybox/testsuite/tar/tar-archives-multiple-files
new file mode 100755
index 00000000..245d9e98
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-archives-multiple-files
@@ -0,0 +1,6 @@
+# FEATURE: CONFIG_FEATURE_TAR_CREATE
+touch foo bar
+busybox tar cf foo.tar foo bar
+rm foo bar
+tar xf foo.tar
+test -f foo -a -f bar
diff --git a/release/src/router/busybox/testsuite/tar/tar-complains-about-missing-file b/release/src/router/busybox/testsuite/tar/tar-complains-about-missing-file
new file mode 100755
index 00000000..dd1f2fa8
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-complains-about-missing-file
@@ -0,0 +1,4 @@
+# XFAIL
+touch foo
+tar cf foo.tar foo
+! busybox tar xf foo.tar bar
diff --git a/release/src/router/busybox/testsuite/tar/tar-demands-at-least-one-ctx b/release/src/router/busybox/testsuite/tar/tar-demands-at-least-one-ctx
new file mode 100755
index 00000000..85e7f605
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-demands-at-least-one-ctx
@@ -0,0 +1 @@
+! busybox tar v
diff --git a/release/src/router/busybox/testsuite/tar/tar-demands-at-most-one-ctx b/release/src/router/busybox/testsuite/tar/tar-demands-at-most-one-ctx
new file mode 100755
index 00000000..130d0e7f
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-demands-at-most-one-ctx
@@ -0,0 +1 @@
+! busybox tar tx
diff --git a/release/src/router/busybox/testsuite/tar/tar-extracts-file b/release/src/router/busybox/testsuite/tar/tar-extracts-file
new file mode 100755
index 00000000..ca72f248
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-extracts-file
@@ -0,0 +1,5 @@
+touch foo
+tar cf foo.tar foo
+rm foo
+busybox tar xf foo.tar
+test -f foo
diff --git a/release/src/router/busybox/testsuite/tar/tar-extracts-from-standard-input b/release/src/router/busybox/testsuite/tar/tar-extracts-from-standard-input
new file mode 100755
index 00000000..a30e9f0b
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-extracts-from-standard-input
@@ -0,0 +1,5 @@
+touch foo
+tar cf foo.tar foo
+rm foo
+cat foo.tar | busybox tar x
+test -f foo
diff --git a/release/src/router/busybox/testsuite/tar/tar-extracts-multiple-files b/release/src/router/busybox/testsuite/tar/tar-extracts-multiple-files
new file mode 100755
index 00000000..e26901e8
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-extracts-multiple-files
@@ -0,0 +1,5 @@
+touch foo bar
+tar cf foo.tar foo bar
+rm foo bar
+busybox tar xf foo.tar
+test -f foo -a -f bar
diff --git a/release/src/router/busybox/testsuite/tar/tar-extracts-to-standard-output b/release/src/router/busybox/testsuite/tar/tar-extracts-to-standard-output
new file mode 100755
index 00000000..ca48e364
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-extracts-to-standard-output
@@ -0,0 +1,3 @@
+echo foo > foo
+tar cf foo.tar foo
+cat foo.tar | busybox tar Ox | cmp foo -
diff --git a/release/src/router/busybox/testsuite/tar/tar-handles-cz-options b/release/src/router/busybox/testsuite/tar/tar-handles-cz-options
new file mode 100755
index 00000000..b2806bbe
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-handles-cz-options
@@ -0,0 +1,4 @@
+# XFAIL
+touch foo
+busybox tar czf foo.tar.gz foo
+gzip -d foo.tar.gz
diff --git a/release/src/router/busybox/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list b/release/src/router/busybox/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list
new file mode 100755
index 00000000..b76f0230
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list
@@ -0,0 +1,5 @@
+# FEATURE: CONFIG_FEATURE_TAR_EXCLUDE
+touch foo
+tar cf foo.tar foo
+echo foo >foo.exclude
+busybox tar xf foo.tar -X foo.exclude
diff --git a/release/src/router/busybox/testsuite/tar/tar-handles-exclude-and-extract-lists b/release/src/router/busybox/testsuite/tar/tar-handles-exclude-and-extract-lists
new file mode 100755
index 00000000..e715a477
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-handles-exclude-and-extract-lists
@@ -0,0 +1,7 @@
+# FEATURE: CONFIG_FEATURE_TAR_EXCLUDE
+touch foo bar baz
+tar cf foo.tar foo bar baz
+echo foo >foo.exclude
+rm foo bar baz
+busybox tar xf foo.tar foo bar -X foo.exclude
+test ! -f foo -a -f bar -a ! -f baz
diff --git a/release/src/router/busybox/testsuite/tar/tar-handles-multiple-X-options b/release/src/router/busybox/testsuite/tar/tar-handles-multiple-X-options
new file mode 100755
index 00000000..8321af85
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-handles-multiple-X-options
@@ -0,0 +1,8 @@
+touch foo
+touch bar
+tar cf foo.tar foo bar
+echo foo > foo.exclude
+echo bar > bar.exclude
+rm foo bar
+busybox tar xf foo.tar -X foo.exclude -X bar.exclude
+test ! -f foo -a ! -f bar
diff --git a/release/src/router/busybox/testsuite/tar/tar-handles-nested-exclude b/release/src/router/busybox/testsuite/tar/tar-handles-nested-exclude
new file mode 100755
index 00000000..ad39506c
--- /dev/null
+++ b/release/src/router/busybox/testsuite/tar/tar-handles-nested-exclude
@@ -0,0 +1,8 @@
+# FEATURE: CONFIG_FEATURE_TAR_EXCLUDE
+mkdir foo
+touch foo/bar
+tar cf foo.tar foo
+rm -rf foo
+echo foo/bar >foobar.exclude
+busybox tar xf foo.tar foo -X foobar.exclude
+test -d foo -a ! -f foo/bar