Refactor lapack_testing.py script, to fix several shortcomings and moderize the script as a whole

This commit is contained in:
Simon Maertens
2026-07-26 18:47:05 +02:00
parent 7a7d7453ed
commit b730744392
4 changed files with 1015 additions and 302 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ cblas_testing: cblaslib blaslib
lapack_testing: tmglib lapacklib blaslib
$(MAKE) -C TESTING/LIN cleanexe
$(MAKE) -C TESTING
./lapack_testing.py
./lapack_testing.py --fail-if-empty --fail-on-unrecognized
.PHONY: variants_testing
variants_testing: tmglib variants lapacklib blaslib
+1 -1
View File
@@ -21,7 +21,7 @@ if(Python3_EXECUTABLE AND LAPACK_TESTING_USE_PYTHON)
add_test(
NAME LAPACK_Test_Summary
WORKING_DIRECTORY ${LAPACK_BINARY_DIR}
COMMAND ${Python3_EXECUTABLE} "lapack_testing.py"
COMMAND ${Python3_EXECUTABLE} "lapack_testing.py" "--fail-if-empty" "--fail-on-unrecognized"
)
endif()
+989 -300
View File
File diff suppressed because it is too large Load Diff
+24
View File
@@ -0,0 +1,24 @@
# Python tooling configuration for the repository's Python scripts
# (currently only lapack_testing.py). This file intentionally has no
# [project]/[build-system] tables: the repository is not a Python package.
[tool.black]
target-version = ["py37"]
[tool.ty.environment]
python-version = "3.7"
[tool.ty.src]
include = ["lapack_testing.py"]
[tool.basedpyright]
pythonVersion = "3.7"
typeCheckingMode = "strict"
include = ["lapack_testing.py"]
[tool.pydocstyle]
convention = "google"
[tool.interrogate]
fail-under = 100
verbose = 1