Skip to content

Commit

Permalink
Enable tests that are working now and disable all tests we expect to …
Browse files Browse the repository at this point in the history
…fail due to not enforcing MTE
  • Loading branch information
rinon committed Oct 3, 2024
1 parent d3e4c9c commit 107ffc9
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ endif()
set_target_properties(check PROPERTIES FOLDER "tests")

add_subdirectory(abi)
add_subdirectory(destructors)
# add_subdirectory(ffmpeg)
add_subdirectory(header_includes)
# add_subdirectory(libusb)
Expand All @@ -52,35 +51,38 @@ add_subdirectory(minimal_no_criterion)
# TODO: support C++ namespaces
#add_subdirectory(namespaces)
add_subdirectory(recursion)
add_subdirectory(ro_sharing)
# We don't actually compile the `omit_wrappers` test, but it is picked up by LIT.
add_subdirectory(shared_data)
add_subdirectory(should_segfault)
add_subdirectory(trusted_direct)
add_subdirectory(untrusted_indirect)
add_subdirectory(two_keys_minimal)
add_subdirectory(two_shared_ranges)
add_subdirectory(global_fn_ptr)
add_subdirectory(read_config)
add_subdirectory(rewrite_fn_ptr_eq)
add_subdirectory(rewrite_macros)
add_subdirectory(sighandler)
add_subdirectory(simple1)
add_subdirectory(structs)
add_subdirectory(heap_two_keys)
add_subdirectory(three_keys_minimal)

# The following tests are not supported on ARM64 yet
if (NOT LIBIA2_AARCH64)
# strange bug with indirect calls
add_subdirectory(read_config)
# Expected to have compartment violations, but we aren't enforcing yet:
add_subdirectory(destructors)
add_subdirectory(ro_sharing)
add_subdirectory(should_segfault)
add_subdirectory(trusted_direct)
add_subdirectory(untrusted_indirect)
add_subdirectory(two_keys_minimal)
add_subdirectory(two_shared_ranges)
add_subdirectory(heap_two_keys)
add_subdirectory(three_keys_minimal)
add_subdirectory(trusted_indirect)

# test calls PKRU-specific functions
add_subdirectory(mmap_loop)
add_subdirectory(tls_protected)

# ARM does not support threads yet
add_subdirectory(threads)
add_subdirectory(protected_threads)
# test calls PKRU-specific functions for logging
add_subdirectory(tls_protected)

# no permissive mode on ARM
add_subdirectory(permissive_mode)
# not sure why this is failing
add_subdirectory(mmap_loop)
# we don't support call gates for indirect transitions yet
add_subdirectory(simple1)
add_subdirectory(trusted_indirect)
add_subdirectory(rewrite_fn_ptr_eq)
endif()

0 comments on commit 107ffc9

Please sign in to comment.