Mohammad Azim Khan | 2179810 | 2018-07-06 00:41:08 +0100 | [diff] [blame] | 1 | #! /usr/bin/env sh |
| 2 | |
Mohammad Azim Khan | d2d0112 | 2018-07-18 17:48:37 +0100 | [diff] [blame^] | 3 | # This file is part of Mbed TLS (https://tls.mbed.org) |
Mohammad Azim Khan | 2179810 | 2018-07-06 00:41:08 +0100 | [diff] [blame] | 4 | # |
Mohammad Azim Khan | d2d0112 | 2018-07-18 17:48:37 +0100 | [diff] [blame^] | 5 | # Copyright (c) 2018, Arm Limited, All Rights Reserved |
Mohammad Azim Khan | 2179810 | 2018-07-06 00:41:08 +0100 | [diff] [blame] | 6 | # |
Mohammad Azim Khan | d2d0112 | 2018-07-18 17:48:37 +0100 | [diff] [blame^] | 7 | # Purpose: |
Mohammad Azim Khan | 2179810 | 2018-07-06 00:41:08 +0100 | [diff] [blame] | 8 | # |
| 9 | # Run 'pylint' on Python files for programming errors and helps enforcing |
| 10 | # PEP8 coding standards. |
| 11 | |
| 12 | if `hash pylint > /dev/null 2>&1`; then |
| 13 | pylint -j 2 tests/scripts/generate_test_code.py --rcfile .pylint |
| 14 | pylint -j 2 tests/scripts/test_generate_test_code.py --rcfile .pylint |
| 15 | pylint -j 2 tests/scripts/mbedtls_test.py --rcfile .pylint |
| 16 | else |
| 17 | echo "$0: WARNING: 'pylint' not found! Skipping checks on Python files." |
| 18 | fi |