Annotation of /trunk/mkinitrd-magellan/busybox/testsuite/unzip.tests
Parent Directory
|
Revision Log
Revision 816 -
(hide annotations)
(download)
Fri Apr 24 18:33:46 2009 UTC (15 years, 1 month ago) by niro
File size: 783 byte(s)
Fri Apr 24 18:33:46 2009 UTC (15 years, 1 month ago) by niro
File size: 783 byte(s)
-updated to busybox-1.13.4
1 | niro | 532 | #!/bin/sh |
2 | |||
3 | # Tests for unzip. | ||
4 | # Copyright 2006 Rob Landley <rob@landley.net> | ||
5 | niro | 816 | # Copyright 2006 Glenn McGrath |
6 | niro | 532 | # Licensed under GPL v2, see file LICENSE for details. |
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 | |||
16 | mkdir temp | ||
17 | cd temp | ||
18 | |||
19 | # Create test file to work with. | ||
20 | |||
21 | mkdir foo | ||
22 | touch foo/bar | ||
23 | zip foo.zip foo foo/bar > /dev/null | ||
24 | rm -f foo/bar | ||
25 | rmdir foo | ||
26 | |||
27 | # Test that unzipping just foo doesn't create bar. | ||
28 | testing "unzip (subdir only)" "unzip -q foo.zip foo/ && test -d foo && test ! -f foo/bar && echo yes" "yes\n" "" "" | ||
29 | |||
30 | rmdir foo | ||
31 | rm foo.zip | ||
32 | |||
33 | # Clean up scratch directory. | ||
34 | |||
35 | cd .. | ||
36 | rm -rf temp | ||
37 | |||
38 | exit $FAILCOUNT |
Properties
Name | Value |
---|---|
svn:executable | * |