Skip to content

Commit

Permalink
Include most Vulkan tests in ASAN build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Mar 14, 2022
1 parent dd1d96c commit e35d003
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions build_tools/cmake/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ fi
# Respect the user setting, but default to as many jobs as we have cores.
export CTEST_PARALLEL_LEVEL=${CTEST_PARALLEL_LEVEL:-$(nproc)}

# Respect the user setting, but default to turning off the vulkan tests
# and turning on the llvmaot ones.
# Respect the user setting, but default to turning on vulkan and llvmaot.
export IREE_VULKAN_DISABLE=${IREE_VULKAN_DISABLE:-0}
export IREE_LLVMAOT_DISABLE=${IREE_LLVMAOT_DISABLE:-0}
# CUDA is off by default.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ echo "------------------"
# Respect the user setting, but default to as many jobs as we have cores.
export CTEST_PARALLEL_LEVEL=${CTEST_PARALLEL_LEVEL:-$(nproc)}

# Respect the user setting, but default to turning off the vulkan tests
# and turning on the llvmaot ones.
# TODO(#5716): Fix and enable Vulkan tests.
export IREE_VULKAN_DISABLE=${IREE_VULKAN_DISABLE:-1}
# Respect the user setting, but default to turning on vulkan and llvmaot.
export IREE_VULKAN_DISABLE=${IREE_VULKAN_DISABLE:-0}
export IREE_LLVMAOT_DISABLE=${IREE_LLVMAOT_DISABLE:-0}
# CUDA is off by default.
export IREE_CUDA_DISABLE=${IREE_CUDA_DISABLE:-1}
Expand Down Expand Up @@ -105,7 +103,11 @@ label_exclude_regex="($(IFS="|" ; echo "${label_exclude_args[*]?}"))"
# These tests currently have asan failures
# TODO(#5715): Fix these
declare -a excluded_tests=(
# Mysterious "LeakSanitizer has encountered a fatal error." crashes
"iree/samples/simple_embedding/simple_embedding_vulkan_test"
"iree/tools/test/iree-benchmark-module.mlir.test"
"iree/tools/test/iree-run-module.mlir.test"
"iree/tools/test/multiple_exported_functions.mlir.test"
)

# Prefix with `^` anchor
Expand All @@ -120,5 +122,5 @@ cd ${CMAKE_BUILD_DIR?}

echo "Testing with ctest"
ctest --timeout 900 --output-on-failure \
--label-exclude "^driver=cuda$|^driver=vulkan$" \
--label-exclude "${label_exclude_regex}" \
--exclude-regex "${excluded_tests_regex?}"

0 comments on commit e35d003

Please sign in to comment.