ash: add all hush parsing tests to ast tests

All pass.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2017-07-24 02:49:56 +02:00
parent 0675b03de4
commit e34dbc4fdc
49 changed files with 331 additions and 4 deletions

View File

@@ -2,10 +2,24 @@
TOPDIR=`pwd`
test -x ash || {
echo "No ./ash - creating a link to ../../busybox"
ln -s ../../busybox ash
}
if test ! -x ash; then
if test ! -x ../../busybox; then
echo "Can't run tests. Put ash binary into this directory (`pwd`)"
exit 1
fi
echo "No ./ash - creating a link to ../../busybox"
ln -s ../../busybox ash
fi
if test ! -f .config; then
if test ! -f ../../.config; then
echo "Missing .config file"
exit 1
fi
cp ../../.config . || exit 1
fi
eval $(sed -e '/^#/d' -e '/^$/d' -e 's:^:export :' .config)
test -x printenv || gcc -O2 -o printenv printenv.c || exit $?
test -x recho || gcc -O2 -o recho recho.c || exit $?
test -x zecho || gcc -O2 -o zecho zecho.c || exit $?