2013-03-03 17:40:35 +01:00
|
|
|
#!/bin/sh
|
2013-03-10 12:13:23 +01:00
|
|
|
: ${PYTHON:=python}
|
2013-03-09 13:16:00 +01:00
|
|
|
FAILED=0
|
2013-03-17 10:55:31 +01:00
|
|
|
export PYTHONPATH="${PYTHONPATH}:`realpath .`"
|
|
|
|
for file in tests/test_*.py ; do
|
2013-04-13 13:44:08 +02:00
|
|
|
if ! ${PYTHON} $file --verbose --catch ; then
|
2014-01-11 10:16:25 +01:00
|
|
|
echo "Failed test(s) from $file"
|
2013-03-09 13:16:00 +01:00
|
|
|
FAILED=1
|
|
|
|
fi
|
2013-03-17 10:55:31 +01:00
|
|
|
done
|
2013-03-23 22:42:50 +01:00
|
|
|
if ! ${PYTHON} scripts/powerline-lint -p powerline/config_files ; then
|
2014-01-11 10:16:25 +01:00
|
|
|
echo "Failed powerline-lint"
|
2013-03-09 13:16:00 +01:00
|
|
|
FAILED=1
|
|
|
|
fi
|
2013-05-23 16:22:49 +02:00
|
|
|
for script in tests/*.vim ; do
|
|
|
|
if ! vim -u NONE -S $script || test -f message.fail ; then
|
|
|
|
echo "Failed script $script" >&2
|
|
|
|
cat message.fail >&2
|
|
|
|
rm message.fail
|
|
|
|
FAILED=1
|
|
|
|
fi
|
|
|
|
done
|
2014-01-12 20:45:17 +01:00
|
|
|
if ! sh tests/test_shells/test.sh ; then
|
2014-01-11 10:16:25 +01:00
|
|
|
echo "Failed shells"
|
|
|
|
FAILED=1
|
|
|
|
fi
|
2013-03-09 13:16:00 +01:00
|
|
|
exit $FAILED
|