Merge test suite.
This commit is contained in:
5
testsuite/tar/tar-demands-at-least-one-ctx
Normal file
5
testsuite/tar/tar-demands-at-least-one-ctx
Normal file
@@ -0,0 +1,5 @@
|
||||
if busybox tar v; then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
5
testsuite/tar/tar-demands-at-most-one-ctx
Normal file
5
testsuite/tar/tar-demands-at-most-one-ctx
Normal file
@@ -0,0 +1,5 @@
|
||||
if busybox tar tx; then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
5
testsuite/tar/tar-extracts-file
Normal file
5
testsuite/tar/tar-extracts-file
Normal file
@@ -0,0 +1,5 @@
|
||||
touch foo
|
||||
tar cf foo.tar foo
|
||||
rm foo
|
||||
busybox tar xf foo.tar
|
||||
test -f foo
|
5
testsuite/tar/tar-extracts-multiple-files
Normal file
5
testsuite/tar/tar-extracts-multiple-files
Normal file
@@ -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
|
4
testsuite/tar/tar-handles-cz-options
Normal file
4
testsuite/tar/tar-handles-cz-options
Normal file
@@ -0,0 +1,4 @@
|
||||
# XFAIL
|
||||
touch foo
|
||||
busybox tar czf foo.tar.gz foo
|
||||
gzip -d foo.tar.gz
|
@@ -0,0 +1,4 @@
|
||||
touch foo
|
||||
tar cf foo.tar foo
|
||||
echo foo >foo.exclude
|
||||
busybox tar xf foo.tar -X foo.exclude
|
6
testsuite/tar/tar-handles-exclude-and-extract-lists
Normal file
6
testsuite/tar/tar-handles-exclude-and-extract-lists
Normal file
@@ -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
|
8
testsuite/tar/tar-handles-multiple-X-options
Normal file
8
testsuite/tar/tar-handles-multiple-X-options
Normal file
@@ -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
|
7
testsuite/tar/tar-handles-nested-exclude
Normal file
7
testsuite/tar/tar-handles-nested-exclude
Normal file
@@ -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
|
Reference in New Issue
Block a user