aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-12 21:24:29 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-12 21:24:29 +0200
commitdbfa45b3b23d882a7ff3e9ef4bf84378e6b9a4a8 (patch)
treef819ff72b42c425c21e0cde8a9bcc1331117cef8 /shell
parentcbfe6ad4c6c6a218a3dd89623911183aca91b061 (diff)
downloadbusybox-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-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