diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-02-05 22:31:48 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-02-05 22:31:48 +0000 |
commit | 046683f4f723c5e94b4886134ba2193defaf476c (patch) | |
tree | 7c3cfb740d90bcdaffe7f09ddbd90531ac2e53e9 /testsuite | |
parent | b962948eff2fdc3aa013502a9285580a482fb6b4 (diff) | |
download | busybox-w32-046683f4f723c5e94b4886134ba2193defaf476c.tar.gz busybox-w32-046683f4f723c5e94b4886134ba2193defaf476c.tar.bz2 busybox-w32-046683f4f723c5e94b4886134ba2193defaf476c.zip |
* archival/gzip.c (ifname, ofname): Delete.
(gzip_main): Handle multiple files.
* include/usage.h (gzip_trivial_usage): Allow multiple FILEs.
(gzip_full_usage): Ditto.
* testsuite/gzip/gzip-accepts-multiple-files: New.
* testsuite/gzip/gzip-removes-original-file: New.
git-svn-id: svn://busybox.net/trunk/busybox@4191 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gzip/gzip-accepts-multiple-files | 3 | ||||
-rw-r--r-- | testsuite/gzip/gzip-removes-original-file | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/gzip/gzip-accepts-multiple-files b/testsuite/gzip/gzip-accepts-multiple-files new file mode 100644 index 000000000..8f0d9c845 --- /dev/null +++ b/testsuite/gzip/gzip-accepts-multiple-files | |||
@@ -0,0 +1,3 @@ | |||
1 | touch foo bar | ||
2 | busybox gzip foo bar | ||
3 | test -f foo.gz -a -f bar.gz | ||
diff --git a/testsuite/gzip/gzip-removes-original-file b/testsuite/gzip/gzip-removes-original-file new file mode 100644 index 000000000..b9cb995bc --- /dev/null +++ b/testsuite/gzip/gzip-removes-original-file | |||
@@ -0,0 +1,3 @@ | |||
1 | touch foo | ||
2 | busybox gzip foo | ||
3 | test ! -f foo | ||