aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshell/hush_test/run-all16
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
9unset LC_TIME 9unset LC_TIME
10unset LC_ALL 10unset LC_ALL
11 11
12test -x hush || { 12if 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} 19fi
16if test ! -e .config; then 20if 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
23fi 26fi
27
24eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' .config) 28eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' .config)
25 29
26PATH="`pwd`:$PATH" # for hush and recho/zecho/printenv 30PATH="`pwd`:$PATH" # for hush and recho/zecho/printenv