Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-12 16:53:44 +0400
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-12 16:53:44 +0400
commit19679784c03089c585c609335389f034172a11ff (patch)
treeaedcbd8ba735f8036c60b038d3c6465fbe78fdd2
parent09516066d4fb12d1be1c895c072bf481da97520a (diff)
hush tests: remove the requirement that .config is in ../..
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/hush.c1
-rwxr-xr-xshell/hush_test/run-all14
2 files changed, 11 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c
index d7b479d64..f49630a75 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -58,6 +58,7 @@
* TODOs:
* grep for "TODO" and fix (some of them are easy)
* builtins: ulimit
+ * special variables (PWD etc)
* follow IFS rules more precisely, including update semantics
* export builtin should be special, its arguments are assignments
* and therefore expansion of them should be "one-word" expansion:
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all
index 470adaa9b..cde841e66 100755
--- a/shell/hush_test/run-all
+++ b/shell/hush_test/run-all
@@ -13,14 +13,20 @@ test -x hush || {
echo "No ./hush - creating a link to ../../busybox"
ln -s ../../busybox hush
}
-if test -e ../../.config ; then
- eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' ../../.config)
+if test ! -e .config; then
+ if test -f ../../.config; then
+ cp ../../.config . || exit 1
+ else
+ echo "Missing .config file"
+ exit 1
+ 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
-THIS_SH="$PWD/hush"
+THIS_SH="`pwd`/hush"
export THIS_SH
do_test()