This is an automated email from the ASF dual-hosted git repository. leginee pushed a commit to branch bazel-migration in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit eaa849c1dad5b9b5275eefb831dd818e279456ff Author: Peter Kovacs <[email protected]> AuthorDate: Sat Jun 20 23:26:49 2026 +0200 salhelper test added --- main/salhelper/BUILD.bazel | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/main/salhelper/BUILD.bazel b/main/salhelper/BUILD.bazel index fdb5f092c2..a13e093c35 100644 --- a/main/salhelper/BUILD.bazel +++ b/main/salhelper/BUILD.bazel @@ -1,6 +1,7 @@ package(default_visibility = ["//visibility:public"]) load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") +load("//build/rules:gtest_test.bzl", "gtest_test") _COPTS = [ "/Zm500", "/Zc:forScope", "/GR", "/nologo", "/Gs", @@ -55,4 +56,34 @@ filegroup( srcs = [":salhelper3MSC"], output_group = "interface_library", visibility = ["//visibility:public"], +) + +# ── salhelper_test — RTTI/type_info checks for salhelper's public API ── +# Standalone GoogleTest (own main()), no UNO runtime. Links sal + salhelper +# import libs; needs sal3.dll + salhelper3MSC.dll at run time. Mirrors +# qa/makefile.mk (test_api.obj + main.obj, GTESTLIB + SALLIB + SALHELPERLIB). +gtest_test( + name = "salhelper_test", + srcs = [ + "qa/main.cxx", + "qa/test_api.cxx", + ], + copts = _COPTS, + defines = _DEFINES, + deps = [ + ":salhelper_headers", + "//main/sal:sal_headers", + ], + additional_linker_inputs = [ + "//main/sal:sal_implib", + ":salhelper_implib", + ], + linkopts = [ + "$(execpath //main/sal:sal_implib)", + "$(execpath :salhelper_implib)", + ], + runtime_dlls = [ + "//main/sal:sal3", + ":salhelper3MSC", + ], ) \ No newline at end of file
