From 008d0be72b2f160382c6e880765e96b64a050c65 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 3 Jan 2015 12:04:58 +0100 Subject: imported original firmware WRT54GL_v4.30.11_11_US --- .../src/router/busybox/testsuite/tar/tar-archives-multiple-files | 6 ++++++ .../router/busybox/testsuite/tar/tar-complains-about-missing-file | 4 ++++ .../src/router/busybox/testsuite/tar/tar-demands-at-least-one-ctx | 1 + .../src/router/busybox/testsuite/tar/tar-demands-at-most-one-ctx | 1 + release/src/router/busybox/testsuite/tar/tar-extracts-file | 5 +++++ .../router/busybox/testsuite/tar/tar-extracts-from-standard-input | 5 +++++ .../src/router/busybox/testsuite/tar/tar-extracts-multiple-files | 5 +++++ .../router/busybox/testsuite/tar/tar-extracts-to-standard-output | 3 +++ release/src/router/busybox/testsuite/tar/tar-handles-cz-options | 4 ++++ .../tar/tar-handles-empty-include-and-non-empty-exclude-list | 5 +++++ .../busybox/testsuite/tar/tar-handles-exclude-and-extract-lists | 7 +++++++ .../router/busybox/testsuite/tar/tar-handles-multiple-X-options | 8 ++++++++ .../src/router/busybox/testsuite/tar/tar-handles-nested-exclude | 8 ++++++++ 13 files changed, 62 insertions(+) create mode 100755 release/src/router/busybox/testsuite/tar/tar-archives-multiple-files create mode 100755 release/src/router/busybox/testsuite/tar/tar-complains-about-missing-file create mode 100755 release/src/router/busybox/testsuite/tar/tar-demands-at-least-one-ctx create mode 100755 release/src/router/busybox/testsuite/tar/tar-demands-at-most-one-ctx create mode 100755 release/src/router/busybox/testsuite/tar/tar-extracts-file create mode 100755 release/src/router/busybox/testsuite/tar/tar-extracts-from-standard-input create mode 100755 release/src/router/busybox/testsuite/tar/tar-extracts-multiple-files create mode 100755 release/src/router/busybox/testsuite/tar/tar-extracts-to-standard-output create mode 100755 release/src/router/busybox/testsuite/tar/tar-handles-cz-options create mode 100755 release/src/router/busybox/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list create mode 100755 release/src/router/busybox/testsuite/tar/tar-handles-exclude-and-extract-lists create mode 100755 release/src/router/busybox/testsuite/tar/tar-handles-multiple-X-options create mode 100755 release/src/router/busybox/testsuite/tar/tar-handles-nested-exclude (limited to 'release/src/router/busybox/testsuite/tar') 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 -- cgit v1.2.3-54-g00ecf