diff options
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 |