gash/test.sh

18 lines
293 B
Bash
Raw Normal View History

2018-07-03 20:49:55 +01:00
if [ -n "$BUILD_DEBUG" ]; then
set -x
fi
SHELL=${SHELL-bin/gash}
for f in test/*.sh; do
echo -n "$f: "
b=test/$(basename $f .sh)
$SHELL -e $f
2018-07-03 20:49:55 +01:00
r=$?
if [ -f $b.exit ]; then
e=$(cat $b.exit)
else
e=0
fi
[ $r = $e ] || exit 1
echo pass
done