Merge test suite.

This commit is contained in:
Matt Kraai
2001-10-30 23:11:20 +00:00
parent 999623e973
commit 3889078dbe
73 changed files with 660 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
if busybox tar v; then
return 1
else
return 0
fi

View File

@@ -0,0 +1,5 @@
if busybox tar tx; then
return 1
else
return 0
fi

View File

@@ -0,0 +1,5 @@
touch foo
tar cf foo.tar foo
rm foo
busybox tar xf foo.tar
test -f foo

View 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

View File

@@ -0,0 +1,4 @@
# XFAIL
touch foo
busybox tar czf foo.tar.gz foo
gzip -d foo.tar.gz

View File

@@ -0,0 +1,4 @@
touch foo
tar cf foo.tar foo
echo foo >foo.exclude
busybox tar xf foo.tar -X foo.exclude

View 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

View 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

View 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