powerline/tests/test.sh

17 lines
342 B
Bash
Executable File

#!/bin/sh
: ${PYTHON:=python}
FAILED=0
export PYTHONPATH="${PYTHONPATH}:`realpath .`"
for file in tests/test_*.py ; do
if ! ${PYTHON} $file --verbose --catch ; then
FAILED=1
fi
done
if ! ${PYTHON} scripts/powerline-lint -p powerline/config_files ; then
FAILED=1
fi
if ! vim -S tests/test_plugin_file.vim ; then
FAILED=1
fi
exit $FAILED