diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-12 21:24:29 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-12 21:24:29 +0200 |
commit | dbfa45b3b23d882a7ff3e9ef4bf84378e6b9a4a8 (patch) | |
tree | f819ff72b42c425c21e0cde8a9bcc1331117cef8 /shell | |
parent | cbfe6ad4c6c6a218a3dd89623911183aca91b061 (diff) | |
download | busybox-w32-dbfa45b3b23d882a7ff3e9ef4bf84378e6b9a4a8.tar.gz busybox-w32-dbfa45b3b23d882a7ff3e9ef4bf84378e6b9a4a8.tar.bz2 busybox-w32-dbfa45b3b23d882a7ff3e9ef4bf84378e6b9a4a8.zip |
hust test: complain if busybox binary can't be found
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rwxr-xr-x | shell/hush_test/run-all | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all index ee8327f0d..256f152dc 100755 --- a/shell/hush_test/run-all +++ b/shell/hush_test/run-all | |||
@@ -9,18 +9,22 @@ unset LC_NUMERIC | |||
9 | unset LC_TIME | 9 | unset LC_TIME |
10 | unset LC_ALL | 10 | unset LC_ALL |
11 | 11 | ||
12 | test -x hush || { | 12 | if test ! -x hush; then |
13 | if test ! -x ../../busybox; then | ||
14 | echo "Can't run tests. Put hush binary into this directory (`pwd`)" | ||
15 | exit 1 | ||
16 | fi | ||
13 | echo "No ./hush - creating a link to ../../busybox" | 17 | echo "No ./hush - creating a link to ../../busybox" |
14 | ln -s ../../busybox hush | 18 | ln -s ../../busybox hush |
15 | } | 19 | fi |
16 | if test ! -e .config; then | 20 | if test ! -f .config; then |
17 | if test -f ../../.config; then | 21 | if test ! -f ../../.config; then |
18 | cp ../../.config . || exit 1 | ||
19 | else | ||
20 | echo "Missing .config file" | 22 | echo "Missing .config file" |
21 | exit 1 | 23 | exit 1 |
22 | fi | 24 | fi |
25 | cp ../../.config . || exit 1 | ||
23 | fi | 26 | fi |
27 | |||
24 | eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' .config) | 28 | eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' .config) |
25 | 29 | ||
26 | PATH="`pwd`:$PATH" # for hush and recho/zecho/printenv | 30 | PATH="`pwd`:$PATH" # for hush and recho/zecho/printenv |