Skip to content

Commit e2fc459

Browse files
shameekgangulyiche033
authored andcommitted
Add back tests
Signed-off-by: Shameek Ganguly <[email protected]>
1 parent 6de956a commit e2fc459

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

profiler/BUILD.bazel

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,53 @@ cc_library(
177177
}),
178178
)
179179

180+
cc_test(
181+
name = "Profiler_Disabled_TEST",
182+
srcs = ["src/Profiler_Disabled_TEST.cc"],
183+
# This test is only compatible with --//profiler:config="disabled"
184+
defines = select({
185+
"disabled": [],
186+
"//conditions:default": ["BAZEL_SKIP_PROFILER_TEST=1"],
187+
}),
188+
deps = [
189+
GZ_ROOT + "common",
190+
":profiler",
191+
"@gtest",
192+
"@gtest//:gtest_main",
193+
],
194+
)
195+
196+
cc_test(
197+
name = "Profiler_Remotery_TEST",
198+
srcs = ["src/Profiler_Remotery_TEST.cc"],
199+
# This test is only compatible with --//profiler:config="remotery"
200+
defines = select({
201+
"use_remotery": [],
202+
"//conditions:default": ["BAZEL_SKIP_PROFILER_TEST=1"],
203+
}),
204+
deps = [
205+
GZ_ROOT + "common",
206+
":profiler",
207+
"@gtest",
208+
"@gtest//:gtest_main",
209+
],
210+
)
211+
212+
cc_test(
213+
name = "Profiler_Custom_TEST",
214+
srcs = ["src/Profiler_Custom_TEST.cc"],
215+
# This test is only compatible with --//profiler:config="custom"
216+
defines = select({
217+
"use_custom": [],
218+
"//conditions:default": ["BAZEL_SKIP_PROFILER_TEST=1"],
219+
}),
220+
deps = [
221+
GZ_ROOT + "common",
222+
":ProfilerImplInterface",
223+
":profiler",
224+
"@gtest",
225+
"@gtest//:gtest_main",
226+
],
227+
)
228+
180229
add_lint_tests()

0 commit comments

Comments
 (0)