# HG changeset patch # User Andrey Skvortsov # Date 1527066828 -10800 # Node ID 2a8cd24a14caae8f9cc7feab53366224930960a9 # Parent 4eeefc6a13fda8f209b8abf0d233f8d52fe3d9ac Print version information about software used for tests diff -r 4eeefc6a13fd -r 2a8cd24a14ca tests/tools/check_source.sh --- a/tests/tools/check_source.sh Wed May 23 11:48:34 2018 +0300 +++ b/tests/tools/check_source.sh Wed May 23 12:13:48 2018 +0300 @@ -34,9 +34,11 @@ compile_checks() { - echo "Syntax checking..." + echo "Syntax checking using python ..." py_files=$(find . -name '*.py') + python --version + # remove compiled Python files find . -name '*.pyc' -exec rm -f {} \; @@ -48,6 +50,8 @@ set_exit_error fi done + echo "DONE" + echo "" } # pep8 was renamed to pycodestyle @@ -60,6 +64,8 @@ echo "pep8/pycodestyle is not found" set_exit_error fi + echo -n "pep8 version: " + $pep8 --version } pep8_checks_default() @@ -91,6 +97,9 @@ if [ $? -ne 0 ]; then set_exit_error fi + + echo "DONE" + echo "" } @@ -159,6 +168,9 @@ if [ $? -ne 0 ]; then set_exit_error fi + + echo "DONE" + echo "" } flake8_checks() @@ -172,10 +184,16 @@ return fi + echo -n "flake8 version: " + flake8 --version + flake8 --max-line-length=300 --exclude=build --builtins="_" ./ if [ $? -ne 0 ]; then set_exit_error fi + + echo "DONE" + echo "" } pylint_checks() @@ -188,6 +206,7 @@ set_exit_error return fi + pylint --version export PYTHONPATH="$PWD/../CanFestival-3/objdictgen":$PYTHONPATH @@ -291,6 +310,9 @@ if [ $? -ne 0 ]; then set_exit_error fi + + echo "DONE" + echo "" } main()