remove xctest bundles and replace with add_library

This commit is contained in:
mitras-git committed 2026-07-17 10:07:02 -04:00
1 parent 64507bf417
commit 1074ac8725
2 files changed
+19 -54

No files matched your search

+2 -12
View File
@@ -12,16 +12,8 @@
#
#===----------------------------------------------------------------------===#
if(APPLE)
add_library(InMemoryLoggingTests MODULE
InMemoryLogHandlerTests.swift)
set_target_properties(InMemoryLoggingTests PROPERTIES
BUNDLE TRUE
BUNDLE_EXTENSION xctest)
else()
add_executable(InMemoryLoggingTests
InMemoryLogHandlerTests.swift)
endif()
add_library(InMemoryLoggingTests
InMemoryLogHandlerTests.swift)
target_compile_options(InMemoryLoggingTests PRIVATE
${SWIFT_LOG_COMMON_COMPILE_OPTIONS})
@@ -39,5 +31,3 @@ if(APPLE)
else()
target_link_libraries(InMemoryLoggingTests PRIVATE InMemoryLogging Logging Testing)
endif()
add_test(NAME InMemoryLoggingTests COMMAND InMemoryLoggingTests)
+17 -42
View File
@@ -12,46 +12,23 @@
#
#===----------------------------------------------------------------------===#
if(APPLE)
add_library(LoggingTests MODULE
CompatibilityTest.swift
GlobalLoggingTest.swift
LocalLoggingTest.swift
LockTest.swift
LogEventTest.swift
LoggingTest.swift
MDCTest.swift
MetadataAttributesTest.swift
MetadataProviderTest.swift
MetadataValueInterpolationTest.swift
StreamLogHandlerTest.swift
SwiftLogNoOpLogHandlerTest.swift
TaskLocalLoggerTest.swift
TestLogger.swift
TestSendable.swift
SubDirectoryOfLoggingTests/EmitALogFromSubDirectory.swift)
set_target_properties(LoggingTests PROPERTIES
BUNDLE TRUE
BUNDLE_EXTENSION xctest)
else()
add_executable(LoggingTests
CompatibilityTest.swift
GlobalLoggingTest.swift
LocalLoggingTest.swift
LockTest.swift
LogEventTest.swift
LoggingTest.swift
MDCTest.swift
MetadataAttributesTest.swift
MetadataProviderTest.swift
MetadataValueInterpolationTest.swift
StreamLogHandlerTest.swift
SwiftLogNoOpLogHandlerTest.swift
TaskLocalLoggerTest.swift
TestLogger.swift
TestSendable.swift
SubDirectoryOfLoggingTests/EmitALogFromSubDirectory.swift)
endif()
add_library(LoggingTests
CompatibilityTest.swift
GlobalLoggingTest.swift
LocalLoggingTest.swift
LockTest.swift
LogEventTest.swift
LoggingTest.swift
MDCTest.swift
MetadataAttributesTest.swift
MetadataProviderTest.swift
MetadataValueInterpolationTest.swift
StreamLogHandlerTest.swift
SwiftLogNoOpLogHandlerTest.swift
TaskLocalLoggerTest.swift
TestLogger.swift
TestSendable.swift
SubDirectoryOfLoggingTests/EmitALogFromSubDirectory.swift)
target_compile_options(LoggingTests PRIVATE
${SWIFT_LOG_COMMON_COMPILE_OPTIONS})
@@ -70,5 +47,3 @@ if(APPLE)
else()
target_link_libraries(LoggingTests PRIVATE Logging Testing)
endif()
add_test(NAME LoggingTests COMMAND LoggingTests)