Skip to content

Commit

Permalink
Lean: Adjust lean test script to add a timeout (#1051)
Browse files Browse the repository at this point in the history
Enable additional tests that now pass

Disable the constructor 247 test for now
  • Loading branch information
Alasdair authored Feb 24, 2025
1 parent 07baef1 commit 17174de
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions test/lean/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# Not all self-tests are supported.
skip_selftests = {
'list_rec_functions2',
'eq_struct',
'either_rvbug',
'bv_literal',
'issue362',
Expand All @@ -32,7 +31,6 @@
'large_bitvector',
'exn_hello_world',
'poly_union_rev',
'match_bind',
'rev_bits_in_byte',
'foreach_none',
'all_even_vector_length',
Expand All @@ -43,11 +41,8 @@
'primop',
'poly_pair',
'assign_rename_bug',
'warl',
'config',
'spc_mappings_small',
'cheri128_hsb',
'instruction',
'gvector',
'small_slice',
'union_variant_names',
Expand All @@ -64,7 +59,6 @@
'return_leak',
'custom_flow',
'pointer_assign',
'two_mapping',
'ctz',
'spc_mappings',
'concurrency_interface',
Expand All @@ -76,7 +70,6 @@
'string_literal_type',
'hex_str_negative',
'xlen32',
'issue232_2',
'cheri_capreg',
'loop_exception',
'issue429',
Expand All @@ -96,12 +89,9 @@
'enum_vector',
'issue136',
'reg_32_64',
'issue232',
'issue243_fixed',
'int_struct_constrained',
'get_slice_int',
'fail_exception',
'zeros_mapping',
'natural_sort_reg',
'option_option',
'anf_as_pattern',
Expand All @@ -115,7 +105,8 @@
'vector_init',
'partial_mapping',
'lib_dec_bits',
'list_list_eq'
'list_list_eq',
'constructor247'
}

print("Sail is {}".format(sail))
Expand Down Expand Up @@ -157,7 +148,7 @@ def test_lean(subdir: str, skip_list = None, runnable: bool = False):
if runnable and basename.startswith('fail'):
step(f'lake exe run > expected 2> err_status', cwd=f'{basename}/out', name=filename, expected_status=1)
elif runnable:
step(f'lake exe run > expected 2> err_status', cwd=f'{basename}/out', name=filename)
step(f'timeout 90s lake exe run > expected 2> err_status', cwd=f'{basename}/out', name=filename)
else:
# NOTE: lake --dir does not behave the same as cd $dir && lake build...
step('lake build', cwd=f'{basename}/out', name=filename)
Expand Down

0 comments on commit 17174de

Please sign in to comment.