mongo/buildscripts/bazel_testbuilds/BUILD.bazel
Daniel Moody f7c6ecd634 SERVER-117835 fix symbol check suggested command (#47067)
GitOrigin-RevId: 68c94d6912ada19f0b87499ac8030674b9b75be0
2026-01-27 22:38:04 +00:00

45 lines
1.6 KiB
Python

# Bazel build definitions used to test bazel features during build system development.
load("//bazel:mongo_src_rules.bzl", "mongo_cc_binary", "mongo_cc_unit_test")
package(default_visibility = ["//visibility:public"])
mongo_cc_binary(
name = "unit_test",
srcs = ["unit_test.cpp"],
)
# Verifies evergreen symbol-check report uses the exact bazel invocation
# emitted by the Evergreen bazel compile script, and suggests *_with_debug targets.
py_test(
name = "test_generate_symbol_check_report",
srcs = ["test_generate_symbol_check_report.py"],
data = [
"//evergreen:generate_symbol_check_report.py",
],
deps = [
"//buildscripts:simple_report",
"//buildscripts/util",
],
)
# Test for verifying test_wrapper.sh timeout behavior and coredump generation.
# This test intentionally hangs to trigger the timeout mechanism in test_wrapper.sh.
# When run via the --run_under=//bazel:test_wrapper param, it should:
# 1. Get killed by SIGABRT after the configured timeout
# 2. Generate a coredump file saved to TEST_UNDECLARED_OUTPUTS_DIR
#
# Usage:
# bazel test --config=remote_test //buildscripts/bazel_testbuilds:ci_wrapper_timeout_test --run_under=//bazel:test_wrapper
mongo_cc_unit_test(
name = "ci_wrapper_timeout_test",
srcs = ["ci_wrapper_timeout_test.cpp"],
tags = [
# Tag to indicate this test is expected to timeout and be killed
"ci_wrapper_integration_test",
# Manual tag to prevent this from running in normal test suites
# since it's designed to fail/timeout
"manual",
],
)