summaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-12 14:53:44 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-12 14:53:44 +0200
commit19679784c03089c585c609335389f034172a11ff (patch)
treeaedcbd8ba735f8036c60b038d3c6465fbe78fdd2 /shell/hush_test
parent09516066d4fb12d1be1c895c072bf481da97520a (diff)
downloadbusybox-w32-19679784c03089c585c609335389f034172a11ff.tar.gz
busybox-w32-19679784c03089c585c609335389f034172a11ff.tar.bz2
busybox-w32-19679784c03089c585c609335389f034172a11ff.zip
hush tests: remove the requirement that .config is in ../..
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rwxr-xr-xshell/hush_test/run-all14
1 files changed, 10 insertions, 4 deletions
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 || {
13 echo "No ./hush - creating a link to ../../busybox" 13 echo "No ./hush - creating a link to ../../busybox"
14 ln -s ../../busybox hush 14 ln -s ../../busybox hush
15} 15}
16if test -e ../../.config ; then 16if test ! -e .config; then
17 eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' ../../.config) 17 if test -f ../../.config; then
18 cp ../../.config . || exit 1
19 else
20 echo "Missing .config file"
21 exit 1
22 fi
18fi 23fi
24eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' .config)
19 25
20PATH="$PWD:$PATH" # for hush and recho/zecho/printenv 26PATH="`pwd`:$PATH" # for hush and recho/zecho/printenv
21export PATH 27export PATH
22 28
23THIS_SH="$PWD/hush" 29THIS_SH="`pwd`/hush"
24export THIS_SH 30export THIS_SH
25 31
26do_test() 32do_test()