Print version information about software used for tests
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 23 May 2018 12:13:48 +0300
changeset 2016 2a8cd24a14ca
parent 2015 4eeefc6a13fd
child 2017 c76d4be6f438
Print version information about software used for tests
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()