diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2018-12-18 11:05:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2018-12-18 11:05:49 +0000 |
commit | cada1143501a48effc483e3873596c22849926b5 (patch) | |
tree | 93a1da95d69b69328a1e7d3621447797f65137c9 /longbow/src/LongBow/test/CMakeLists.txt | |
parent | 726949d76a7207694d5a1eee84ef134a8e539115 (diff) | |
parent | a45edf23c2463ac9a4723a24792a6c5c89b1e021 (diff) |
Merge "Adding gitreview config file for this branch sub project"
Diffstat (limited to 'longbow/src/LongBow/test/CMakeLists.txt')
-rw-r--r-- | longbow/src/LongBow/test/CMakeLists.txt | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/longbow/src/LongBow/test/CMakeLists.txt b/longbow/src/LongBow/test/CMakeLists.txt new file mode 100644 index 00000000..5eba0444 --- /dev/null +++ b/longbow/src/LongBow/test/CMakeLists.txt @@ -0,0 +1,52 @@ +# Enable gcov output for the tests +add_definitions(--coverage) +set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} " --coverage") + + +macro(AddTest testFile) + add_executable(${ARGV0} ${ARGV0}.c) + target_link_libraries(${ARGV0} longbow longbow-ansiterm) + add_test(${ARGV0} ${ARGV0}) + set_target_properties(${ARGV0} PROPERTIES FOLDER Test) +endmacro(AddTest) + +set(TestsExpectedToFail + test_longBow_Expected; +) + +# test_assertions; + +set(TestsExpectedToPass + test_MemoryLeaks; + test_longBow_ArrayList; + test_longBow_Config; + test_longBow_Fixture; + test_longBow_Memory; + test_longBow_Location; + test_fixtureConfiguration; + test_longBow_Backtrace; + test_longBow_CommandLineOptions; + test_longBow_Debug; + test_longBow_Main; + test_longBow_MeasureTime; + test_longBow_OpenFile; + test_longBow_Properties; + test_longBow_Runner; + test_longBow_Runtime; + test_longBow_Status; + test_longBow_String; + test_longBow_TestCase; + test_longBow_TestCaseClipBoard; + test_longBow_UnitTesting + ) + +foreach(test ${TestsExpectedToPass}) + AddTest(${test}) +endforeach() + +foreach(test ${TestsExpectedToFail}) + AddTest(${test}) + set_tests_properties(${test} PROPERTIES WILL_FAIL TRUE) +endforeach() + + |