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