lorax/tests/testenv.sh
Brian C. Lane c12c5f1e47 Add pylint testing
This adds pylint testing via make check, using the framework from
Anaconda. False positives can be added to
./tests/pylint/pylint-false-positives
2014-05-09 08:10:41 -07:00

20 lines
417 B
Bash

#!/bin/sh
if [ -z "$top_srcdir" ]; then
echo "*** top_srcdir must be set"
exit 1
fi
# If no top_builddir is set, use top_srcdir
: "${top_builddir:=$top_srcdir}"
if [ -z "$PYTHONPATH" ]; then
PYTHONPATH="${top_builddir}/src/:${top_srcdir}/tests/lib"
else
PYTHONPATH="${PYTHONPATH}:${top_srcdir}/src/:${top_srcdir}:${top_srcdir}/tests/lib"
fi
export PYTHONPATH
export top_srcdir
export top_builddir