aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/run-all
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-24 02:49:56 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-24 02:49:56 +0200
commite34dbc4fdcae6e21bb186c225f76d399d2656d75 (patch)
treeddca2d6cb7209bd34e6775c26e211e0c6f49d0e7 /shell/ash_test/run-all
parent0675b03de44b75f5f5fc7a54c164628e9ee01e9c (diff)
downloadbusybox-w32-e34dbc4fdcae6e21bb186c225f76d399d2656d75.tar.gz
busybox-w32-e34dbc4fdcae6e21bb186c225f76d399d2656d75.tar.bz2
busybox-w32-e34dbc4fdcae6e21bb186c225f76d399d2656d75.zip
ash: add all hush parsing tests to ast tests
All pass. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rwxr-xr-xshell/ash_test/run-all22
1 files changed, 18 insertions, 4 deletions
diff --git a/shell/ash_test/run-all b/shell/ash_test/run-all
index 983e6d184..caf033577 100755
--- a/shell/ash_test/run-all
+++ b/shell/ash_test/run-all
@@ -2,10 +2,24 @@
2 2
3TOPDIR=`pwd` 3TOPDIR=`pwd`
4 4
5test -x ash || { 5if test ! -x ash; then
6 echo "No ./ash - creating a link to ../../busybox" 6 if test ! -x ../../busybox; then
7 ln -s ../../busybox ash 7 echo "Can't run tests. Put ash binary into this directory (`pwd`)"
8} 8 exit 1
9 fi
10 echo "No ./ash - creating a link to ../../busybox"
11 ln -s ../../busybox ash
12fi
13if test ! -f .config; then
14 if test ! -f ../../.config; then
15 echo "Missing .config file"
16 exit 1
17 fi
18 cp ../../.config . || exit 1
19fi
20
21eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' .config)
22
9test -x printenv || gcc -O2 -o printenv printenv.c || exit $? 23test -x printenv || gcc -O2 -o printenv printenv.c || exit $?
10test -x recho || gcc -O2 -o recho recho.c || exit $? 24test -x recho || gcc -O2 -o recho recho.c || exit $?
11test -x zecho || gcc -O2 -o zecho zecho.c || exit $? 25test -x zecho || gcc -O2 -o zecho zecho.c || exit $?