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-08-23 13:16:30 +02:00
|
|
|
if ! bash tests/test_shells/test.sh --fast ; then
|
2014-01-11 10:16:25 +01:00
|
|
|
echo "Failed shells"
|
2014-07-12 11:46:28 +02:00
|
|
|
if ${PYTHON} -c 'import platform, sys; sys.exit(1 * (platform.python_implementation() == "PyPy"))' ; then
|
|
|
|
FAILED=1
|
|
|
|
fi
|
2014-01-11 10:16:25 +01:00
|
|
|
fi
|
2013-03-09 13:16:00 +01:00
|
|
|
exit $FAILED
|