Skip to content

Commit 3bca1e4

Browse files
authored
[mlir][Examples] Do not run test.wheel.toy by default (llvm#163009)
This test takes ~16s to execute on my machine, which is an order of magnitude longer than any other mlir test. Put the `test.wheel.toy` test behind a `requires` check for expensive checks. LLVM already has some tests enabled conditionally under expensive checks.
1 parent 72d6d6e commit 3bca1e4

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

mlir/test/Examples/standalone/test.wheel.toy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# than 255 chars when combined with the fact that pip wants to install into a tmp directory buried under
33
# C/Users/ContainerAdministrator/AppData/Local/Temp.
44
# UNSUPPORTED: target={{.*(windows).*}}
5+
# REQUIRES: expensive_checks
56
# REQUIRES: non-shared-libs-build
67
# REQUIRES: bindings-python
78

mlir/test/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ def find_real_python_interpreter():
348348
else:
349349
config.available_features.add("noasserts")
350350

351+
if config.expensive_checks:
352+
config.available_features.add("expensive_checks")
353+
351354
def have_host_jit_feature_support(feature_name):
352355
mlir_runner_exe = lit.util.which("mlir-runner", config.mlir_tools_dir)
353356

mlir/test/lit.site.cfg.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ config.llvm_shlib_ext = "@SHLIBEXT@"
1111
config.llvm_shlib_dir = lit_config.substitute(path(r"@SHLIBDIR@"))
1212
config.python_executable = "@Python3_EXECUTABLE@"
1313
config.enable_assertions = @ENABLE_ASSERTIONS@
14+
config.expensive_checks = "@EXPENSIVE_CHECKS@"
1415
config.native_target = "@LLVM_NATIVE_ARCH@"
1516
config.host_os = "@HOST_OS@"
1617
config.host_cc = "@HOST_CC@"

0 commit comments

Comments
 (0)