Skip to content

Commit 61ba023

Browse files
committed
tests: add stubs for gdb types
In order to get full test coverage, we need to provide stubs for external modules. We don't use enough of elftools to bother with the stubs. libaddrxlat needs surgery in order for it to pass type checking. So for now, we just use the typing for gdb. This means that the static checker will now check the interface with GDB. Prior to this change, the interface was not checked at all. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
1 parent 4134642 commit 61ba023

30 files changed

+1361
-0
lines changed

tests/run-static-checks.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ fi
1212
set -e
1313

1414
DIR=$(dirname "$0")
15+
export MYPYPATH="$(realpath $DIR/stubs)"
16+
1517
python3 $DIR/run-mypy.py

0 commit comments

Comments
 (0)