source: branches/3.2/mindi-busybox/testsuite/unzip.tests @ 3232

Last change on this file since 3232 was 2725, checked in by bruno, 8 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • Property svn:executable set to *
File size: 792 bytes
Line 
1#!/bin/sh
2
3# Tests for unzip.
4# Copyright 2006 Rob Landley <rob@landley.net>
5# Copyright 2006 Glenn McGrath
6# Licensed under GPLv2, see file LICENSE in this source tree.
7
8. ./testing.sh
9
10# testing "test name" "options" "expected result" "file input" "stdin"
11#   file input will be file called "input"
12#   test can create a file "actual" instead of writing to stdout
13
14# Create a scratch directory
15
16mkdir temp
17cd temp
18
19# Create test file to work with.
20
21mkdir foo
22touch foo/bar
23zip foo.zip foo foo/bar > /dev/null
24rm -f foo/bar
25rmdir foo
26
27# Test that unzipping just foo doesn't create bar.
28testing "unzip (subdir only)" "unzip -q foo.zip foo/ && test -d foo && test ! -f foo/bar && echo yes" "yes\n" "" ""
29
30rmdir foo
31rm foo.zip
32
33# Clean up scratch directory.
34
35cd ..
36rm -rf temp
37
38exit $FAILCOUNT
Note: See TracBrowser for help on using the repository browser.