Add a test from Glenn.
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -0,0 +1,38 @@ | |
| + | #!/bin/sh |
| + | |
| + | # Tests for unzip. |
| + | # Copyright 2006 Rob Landley <[email protected]> |
| + | # Copyright 2006 Glenn McGrath <[email protected]> |
| + | # Licensed under GPL v2, see file LICENSE for details. |
| + | |
| + | . testing.sh |
| + | |
| + | # testing "test name" "options" "expected result" "file input" "stdin" |
| + | # file input will be file called "input" |
| + | # test can create a file "actual" instead of writing to stdout |
| + | |
| + | # Create a scratch directory |
| + | |
| + | mkdir temp |
| + | cd temp |
| + | |
| + | # Create test file to work with. |
| + | |
| + | mkdir foo |
| + | touch foo/bar |
| + | zip foo.zip foo foo/bar > /dev/null |
| + | rm -f foo/bar |
| + | rmdir foo |
| + | |
| + | # Test that unzipping just foo doesn't create bar. |
| + | testing "unzip (subdir only)" "unzip -q foo.zip foo/ && test -d foo && test ! -f foo/bar && echo yes" "yes\n" "" "" |
| + | |
| + | rmdir foo |
| + | rm foo.zip |
| + | |
| + | # Clean up scratch directory. |
| + | |
| + | cd .. |
| + | rm -rf temp |
| + | |
| + | exit $FAILCOUNT |