hust test: complain if busybox binary can't be found
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cbfe6ad4c6
commit
dbfa45b3b2
@ -9,18 +9,22 @@ unset LC_NUMERIC
|
|||||||
unset LC_TIME
|
unset LC_TIME
|
||||||
unset LC_ALL
|
unset LC_ALL
|
||||||
|
|
||||||
test -x hush || {
|
if test ! -x hush; then
|
||||||
|
if test ! -x ../../busybox; then
|
||||||
|
echo "Can't run tests. Put hush binary into this directory (`pwd`)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "No ./hush - creating a link to ../../busybox"
|
echo "No ./hush - creating a link to ../../busybox"
|
||||||
ln -s ../../busybox hush
|
ln -s ../../busybox hush
|
||||||
}
|
fi
|
||||||
if test ! -e .config; then
|
if test ! -f .config; then
|
||||||
if test -f ../../.config; then
|
if test ! -f ../../.config; then
|
||||||
cp ../../.config . || exit 1
|
|
||||||
else
|
|
||||||
echo "Missing .config file"
|
echo "Missing .config file"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
cp ../../.config . || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' .config)
|
eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' .config)
|
||||||
|
|
||||||
PATH="`pwd`:$PATH" # for hush and recho/zecho/printenv
|
PATH="`pwd`:$PATH" # for hush and recho/zecho/printenv
|
||||||
|
Loading…
Reference in New Issue
Block a user