-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-pvt-model.sh
executable file
·24 lines (23 loc) · 1020 Bytes
/
test-pvt-model.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
########################################################################################
# test-pvt-model.sh - Runs a series of tests across the system.
#
# Author: Ben Winchester
# Copyright: Ben Winchester, 2021
########################################################################################
echo "Running test suite: black, mypy, pylint, pytest, and enforcement."
echo -e "\e[1mRunning black...\e[0m"
black pvt_model/pvt_system
echo -e "\e[1mRunning mypy...\e[0m"
mypy pvt_model/pvt_system
echo -e "\e[1mRunning pylint on model code...\e[0m"
pylint pvt_model/pvt_system
echo -e "\e[1mRunning pylint on analysis code...\e[0m"
pylint pvt_model/analysis
echo -e "\e[1mRunning yamllint...\e[0m"
yamllint -c .yamllint-config.yaml system_data/
echo -e "\e[1mRunning pytest...\e[0m"
pytest pvt_model/pvt_system
echo -e "\e[1mRunning enforcement scripts...\e[0m"
/usr/bin/python3.7 pvt_model/enforcement/mypy_enforcement.py
echo -e "\e[1mTest suite complete: see above stdout for details.\e[0m"