Files
clang-p2996/mlir/test/python/dialects/linalg/opdsl/doctests.py
Stella Laurenzo 9f3f6d7bd8 Move MLIR python sources to mlir/python.
* NFC but has some fixes for CMake glitches discovered along the way (things not cleaning properly, co-mingled depends).
* Includes previously unsubmitted fix in D98681 and a TODO to fix it more appropriately in a smaller followup.

Differential Revision: https://reviews.llvm.org/D101493
2021-05-03 18:36:48 +00:00

14 lines
349 B
Python

# RUN: %PYTHON %s
import doctest
import importlib
def test_module(module_name):
print(f"--- Testing module: {module_name}")
m = importlib.import_module(module_name)
doctest.testmod(m, verbose=True, raise_on_error=True, report=True)
test_module("mlir.dialects.linalg.opdsl.lang.affine")
test_module("mlir.dialects.linalg.opdsl.lang.types")