diff options
author | Matt Kraai <kraai@debian.org> | 2001-10-30 23:11:20 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-10-30 23:11:20 +0000 |
commit | 3889078dbe09a9d85b359e9c0c0c225e0bbea343 (patch) | |
tree | e258582c0f14f06750e480e2c244260e79860fd0 /testsuite/tar | |
parent | 999623e9736d21177d1f437679b334e0347a6e0f (diff) |
Merge test suite.
Diffstat (limited to 'testsuite/tar')
-rw-r--r-- | testsuite/tar/tar-demands-at-least-one-ctx | 5 | ||||
-rw-r--r-- | testsuite/tar/tar-demands-at-most-one-ctx | 5 | ||||
-rw-r--r-- | testsuite/tar/tar-extracts-file | 5 | ||||
-rw-r--r-- | testsuite/tar/tar-extracts-multiple-files | 5 | ||||
-rw-r--r-- | testsuite/tar/tar-handles-cz-options | 4 | ||||
-rw-r--r-- | testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list | 4 | ||||
-rw-r--r-- | testsuite/tar/tar-handles-exclude-and-extract-lists | 6 | ||||
-rw-r--r-- | testsuite/tar/tar-handles-multiple-X-options | 8 | ||||
-rw-r--r-- | testsuite/tar/tar-handles-nested-exclude | 7 |
9 files changed, 49 insertions, 0 deletions
diff --git a/testsuite/tar/tar-demands-at-least-one-ctx b/testsuite/tar/tar-demands-at-least-one-ctx new file mode 100644 index 000000000..3ac58e89e --- /dev/null +++ b/testsuite/tar/tar-demands-at-least-one-ctx @@ -0,0 +1,5 @@ +if busybox tar v; then + return 1 +else + return 0 +fi diff --git a/testsuite/tar/tar-demands-at-most-one-ctx b/testsuite/tar/tar-demands-at-most-one-ctx new file mode 100644 index 000000000..be2168135 --- /dev/null +++ b/testsuite/tar/tar-demands-at-most-one-ctx @@ -0,0 +1,5 @@ +if busybox tar tx; then + return 1 +else + return 0 +fi diff --git a/testsuite/tar/tar-extracts-file b/testsuite/tar/tar-extracts-file new file mode 100644 index 000000000..ca72f2489 --- /dev/null +++ b/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/testsuite/tar/tar-extracts-multiple-files b/testsuite/tar/tar-extracts-multiple-files new file mode 100644 index 000000000..e26901e8c --- /dev/null +++ b/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/testsuite/tar/tar-handles-cz-options b/testsuite/tar/tar-handles-cz-options new file mode 100644 index 000000000..b2806bbe3 --- /dev/null +++ b/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/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list b/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list new file mode 100644 index 000000000..cf0e4c925 --- /dev/null +++ b/testsuite/tar/tar-handles-empty-include-and-non-empty-exclude-list @@ -0,0 +1,4 @@ +touch foo +tar cf foo.tar foo +echo foo >foo.exclude +busybox tar xf foo.tar -X foo.exclude diff --git a/testsuite/tar/tar-handles-exclude-and-extract-lists b/testsuite/tar/tar-handles-exclude-and-extract-lists new file mode 100644 index 000000000..7f771b978 --- /dev/null +++ b/testsuite/tar/tar-handles-exclude-and-extract-lists @@ -0,0 +1,6 @@ +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/testsuite/tar/tar-handles-multiple-X-options b/testsuite/tar/tar-handles-multiple-X-options new file mode 100644 index 000000000..8321af859 --- /dev/null +++ b/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/testsuite/tar/tar-handles-nested-exclude b/testsuite/tar/tar-handles-nested-exclude new file mode 100644 index 000000000..da1840863 --- /dev/null +++ b/testsuite/tar/tar-handles-nested-exclude @@ -0,0 +1,7 @@ +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 |