Skip to content

Commit 47f6472

Browse files
committed
Revert moving the singleton test.
1 parent 5554720 commit 47f6472

18 files changed

+13
-12
lines changed

api/test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ add_subdirectory(metrics)
1010
add_subdirectory(logs)
1111
add_subdirectory(common)
1212
add_subdirectory(baggage)
13+
14+
if(NOT OPENTELEMETRY_SKIP_DYNAMIC_LOADING_TESTS)
15+
add_subdirectory(singleton)
16+
endif()

sdk/test/singleton/BUILD renamed to api/test/singleton/BUILD

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,15 @@ cc_binary(
159159

160160
#
161161
# To build this test alone:
162-
# - bazel build //sdk/test/singleton:singleton_test
163-
# - bazel build //sdk/test/singleton:component_g
164-
# - bazel build //sdk/test/singleton:component_h
162+
# - bazel build //api/test/singleton:singleton_test
163+
# - bazel build //api/test/singleton:component_g
164+
# - bazel build //api/test/singleton:component_h
165165
#
166166
# Note that singleton_test does not depend on
167167
# component_g and component_h, on purpose.
168168
#
169169
# To run this test:
170-
# bazel test //sdk/test/singleton:singleton_test
170+
# bazel test //api/test/singleton:singleton_test
171171
#
172172

173173
cc_test(
@@ -196,8 +196,6 @@ cc_test(
196196
"component_e",
197197
"component_f",
198198
"//api",
199-
"//sdk/src/common:disabled",
200-
"//sdk/src/trace",
201199
"@com_google_googletest//:gtest_main",
202200
],
203201
)

sdk/test/singleton/CMakeLists.txt renamed to api/test/singleton/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ target_link_libraries(
4747
${GTEST_BOTH_LIBRARIES}
4848
${CMAKE_THREAD_LIBS_INIT}
4949
${CMAKE_DL_LIBS}
50-
opentelemetry_api
51-
opentelemetry_trace)
50+
opentelemetry_api)
5251

5352
gtest_add_tests(
5453
TARGET singleton_test
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)