소스 검색

Add LABELS to the SmallAndFast test project to increase coverage of ctest code that is only invoked when labels are present.

David Cole 16 년 전
부모
커밋
f1e6726668
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      Tests/CTestTest/SmallAndFast/CMakeLists.txt

+ 7 - 0
Tests/CTestTest/SmallAndFast/CMakeLists.txt

@@ -4,7 +4,14 @@ project(SmallAndFast)
 include(CTest)
 
 add_executable(echoargs echoargs.c)
+set_property(SOURCE echoargs.c APPEND PROPERTY LABELS SourceLabel Everything)
+set_property(TARGET echoargs APPEND PROPERTY LABELS TargetLabel Everything)
 
 add_test(test0 echoargs)
+set_property(TEST test0 APPEND PROPERTY LABELS TestLabel 0ArgTest Everything)
+
 add_test(test1 echoargs 1)
+set_property(TEST test1 APPEND PROPERTY LABELS TestLabel 1ArgTest Everything)
+
 add_test(test2 echoargs 1 2)
+set_property(TEST test2 APPEND PROPERTY LABELS TestLabel 2ArgTest Everything)