hush tests: remove the requirement that .config is in ../..
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
09516066d4
commit
19679784c0
@ -58,6 +58,7 @@
|
|||||||
* TODOs:
|
* TODOs:
|
||||||
* grep for "TODO" and fix (some of them are easy)
|
* grep for "TODO" and fix (some of them are easy)
|
||||||
* builtins: ulimit
|
* builtins: ulimit
|
||||||
|
* special variables (PWD etc)
|
||||||
* follow IFS rules more precisely, including update semantics
|
* follow IFS rules more precisely, including update semantics
|
||||||
* export builtin should be special, its arguments are assignments
|
* export builtin should be special, its arguments are assignments
|
||||||
* and therefore expansion of them should be "one-word" expansion:
|
* and therefore expansion of them should be "one-word" expansion:
|
||||||
|
@ -13,14 +13,20 @@ test -x hush || {
|
|||||||
echo "No ./hush - creating a link to ../../busybox"
|
echo "No ./hush - creating a link to ../../busybox"
|
||||||
ln -s ../../busybox hush
|
ln -s ../../busybox hush
|
||||||
}
|
}
|
||||||
if test -e ../../.config ; then
|
if test ! -e .config; then
|
||||||
eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' ../../.config)
|
if test -f ../../.config; then
|
||||||
|
cp ../../.config . || exit 1
|
||||||
|
else
|
||||||
|
echo "Missing .config file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
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
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
THIS_SH="$PWD/hush"
|
THIS_SH="`pwd`/hush"
|
||||||
export THIS_SH
|
export THIS_SH
|
||||||
|
|
||||||
do_test()
|
do_test()
|
||||||
|
Loading…
Reference in New Issue
Block a user