Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
311 additions
and
2,085 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
add_executable(CppUTestTests | ||
src/AllTests.cpp | ||
src/SetPluginTest.cpp | ||
src/CheatSheetTest.cpp | ||
src/SimpleStringTest.cpp | ||
src/SimpleStringCacheTest.cpp | ||
src/CompatabilityTests.cpp | ||
src/CommandLineArgumentsTest.cpp | ||
src/TestFailureTest.cpp | ||
src/TestFailureNaNTest.cpp | ||
src/CommandLineTestRunnerTest.cpp | ||
src/TestFilterTest.cpp | ||
src/TestHarness_cTest.cpp | ||
src/JUnitOutputTest.cpp | ||
src/TestHarness_cTestCFile.c | ||
src/DummyMemoryLeakDetector.cpp | ||
src/MemoryLeakDetectorTest.cpp | ||
src/TestInstallerTest.cpp | ||
src/AllocLetTestFree.c | ||
src/MemoryOperatorOverloadTest.cpp | ||
src/TestMemoryAllocatorTest.cpp | ||
src/MemoryLeakWarningTest.cpp | ||
src/TestOutputTest.cpp | ||
src/AllocLetTestFreeTest.cpp | ||
src/TestRegistryTest.cpp | ||
src/AllocationInCFile.c | ||
src/PluginTest.cpp | ||
src/TestResultTest.cpp | ||
src/PreprocessorTest.cpp | ||
src/TestUTestMacro.cpp | ||
src/TestUTestStringMacro.cpp | ||
src/AllocationInCppFile.cpp | ||
src/UtestTest.cpp | ||
src/SimpleMutexTest.cpp | ||
src/UtestPlatformTest.cpp | ||
src/TeamCityOutputTest.cpp | ||
) | ||
|
||
if(CPPUTEST_STD_C_LIB_DISABLED) | ||
add_library(DummyUTestPlatform INTERFACE) | ||
target_sources(DummyUTestPlatform | ||
INTERFACE | ||
${CMAKE_CURRENT_SOURCE_DIR}/DummyUTestPlatform/DummyUTestPlatform.cpp | ||
) | ||
target_link_libraries(CppUTestTests PRIVATE DummyUTestPlatform) | ||
endif() | ||
|
||
target_include_directories(CppUTestTests | ||
PRIVATE include | ||
) | ||
|
||
if(MINGW OR (${CMAKE_HOST_SYSTEM_NAME} MATCHES "OpenBSD")) | ||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_package(Threads) | ||
if(CMAKE_USE_PTHREADS_INIT) | ||
target_link_libraries(CppUTestTests PRIVATE Threads::Threads) | ||
endif() | ||
endif() | ||
|
||
target_link_libraries(CppUTestTests PRIVATE ${CppUTestLibName}) | ||
|
||
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.13") | ||
target_link_options(CppUTestTests | ||
PRIVATE | ||
$<$<CXX_COMPILER_ID:GNU,Clang>:LINKER:-Map=$<TARGET_FILE:CppUTestTests>.map> | ||
"$<$<CXX_COMPILER_ID:MSVC>:/MAP>" | ||
$<$<CXX_COMPILER_ID:IAR>:"SHELL:--map $<TARGET_FILE:CppUTestTests>.map"> | ||
) | ||
endif() | ||
|
||
if(CPPUTEST_TEST_DISCOVERY) | ||
include(CppUTest) | ||
cpputest_discover_tests(CppUTestTests) | ||
endif() |
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.
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.
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.
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
add_executable(CppUTestExtTests | ||
src/AllTests.cpp | ||
src/CodeMemoryReporterTest.cpp | ||
src/GMockTest.cpp | ||
src/GTest1Test.cpp | ||
src/IEEE754PluginTest.cpp | ||
src/IEEE754PluginTest_c.c | ||
src/MemoryReportAllocatorTest.cpp | ||
src/MemoryReporterPluginTest.cpp | ||
src/MemoryReportFormatterTest.cpp | ||
src/MockActualCallTest.cpp | ||
src/MockCheatSheetTest.cpp | ||
src/MockCallTest.cpp | ||
src/MockComparatorCopierTest.cpp | ||
src/MockExpectedCallTest.cpp | ||
src/ExpectedFunctionsListTest.cpp | ||
src/MockFailureReporterForTest.cpp | ||
src/MockFailureTest.cpp | ||
src/MockHierarchyTest.cpp | ||
src/MockNamedValueTest.cpp | ||
src/MockParameterTest.cpp | ||
src/MockPluginTest.cpp | ||
src/MockSupportTest.cpp | ||
src/MockSupport_cTestCFile.c | ||
src/MockSupport_cTest.cpp | ||
src/MockStrictOrderTest.cpp | ||
src/MockReturnValueTest.cpp | ||
src/OrderedTestTest_c.c | ||
src/OrderedTestTest.cpp | ||
) | ||
|
||
if(CPPUTEST_STD_C_LIB_DISABLED) | ||
target_link_libraries(CppUTestExtTests PRIVATE DummyUTestPlatform) | ||
endif() | ||
|
||
target_include_directories(CppUTestExtTests | ||
PRIVATE include | ||
) | ||
|
||
if(MINGW) | ||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_package(Threads) | ||
if(CMAKE_USE_PTHREADS_INIT) | ||
target_link_libraries(CppUTestExtTests PRIVATE Threads::Threads) | ||
endif() | ||
endif() | ||
|
||
target_link_libraries(CppUTestExtTests | ||
PRIVATE | ||
${CppUTestLibName} | ||
${CppUTestExtLibName} | ||
) | ||
|
||
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.13") | ||
target_link_options(CppUTestExtTests | ||
PRIVATE | ||
$<$<CXX_COMPILER_ID:GNU,Clang>:LINKER:-Map=$<TARGET_FILE:CppUTestExtTests>.map> | ||
"$<$<CXX_COMPILER_ID:MSVC>:/MAP>" | ||
$<$<CXX_COMPILER_ID:IAR>:"SHELL:--map $<TARGET_FILE:CppUTestExtTests>.map"> | ||
) | ||
endif() | ||
|
||
if(CPPUTEST_TEST_DISCOVERY) | ||
include(CppUTest) | ||
cpputest_discover_tests(CppUTestExtTests | ||
DETAILED FALSE | ||
) | ||
endif() |
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.
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.
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.