xref: /openbmc/qemu/tests/qemu-iotests/297 (revision fef80ea0)
1#!/usr/bin/env bash
2# group: meta
3#
4# Copyright (C) 2020 Red Hat, Inc.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
19seq=$(basename $0)
20echo "QA output created by $seq"
21
22status=1	# failure is the default!
23
24# get standard environment
25. ./common.rc
26
27if ! type -p "pylint-3" > /dev/null; then
28    _notrun "pylint-3 not found"
29fi
30if ! type -p "mypy" > /dev/null; then
31    _notrun "mypy not found"
32fi
33
34pylint-3 --score=n iotests.py
35
36MYPYPATH=../../python/ mypy --warn-unused-configs --disallow-subclassing-any \
37    --disallow-any-generics --disallow-incomplete-defs \
38    --disallow-untyped-decorators --no-implicit-optional \
39    --warn-redundant-casts --warn-unused-ignores \
40    --no-implicit-reexport iotests.py
41
42# success, all done
43echo "*** done"
44rm -f $seq.full
45status=0
46