13.MariaDB笔记——cmake使用介绍八支持面板

提交结果到面包非常简单。

之前已经定义了一些测试。

主要运行测试并提交到面板即可。

在主CMakeLists文件中增加如下:

# enabledashboard scripting

include(CTest)

创建文件CTestConfig.cmake

内如如下:

set (CTEST_PROJECT_NAME"Tutorial")

那么CTest在运行的时候会读这个文件。

创建一个简单的面板,可以运行CMake

然后运行

ctest -DExperimental

然后会上传到Kitware’s公共的面板上。

蛤蟆此处上传报错如下,这个先这样吧

F:\VS2010_ZHIZUO\cmake_zhizuo>ctest -DExperimental

  Site: TOAD-PC

  Build name: Win32-MSBuild

Create new tag: 20160416-1612 -Experimental

Configure project

  Each . represents 1024 bytes of output

    .Size of output: 0K

Build project

  Each symbol represents 1024 bytes of output.

  '!' represents an error and '*' a warning.

   ..... Size of output: 4K

   0 Compilererrors

   0Compiler warnings

Test project F:/VS2010_ZHIZUO/cmake_zhizuo

   Start 1: TutorialRuns

1/9 Test #1: TutorialRuns.....................   Passed    0.24 sec

   Start 2: TutorialUsage

2/9 Test #2: TutorialUsage....................   Passed    0.02 sec

   Start 3: TutorialComp4

3/9 Test #3: TutorialComp4....................   Passed    0.02 sec

   Start 4: TutorialComp9

4/9 Test #4: TutorialComp9....................   Passed    0.02 sec

   Start 5: TutorialComp5

5/9 Test #5: TutorialComp5....................   Passed    0.02 sec

   Start 6: TutorialComp7

6/9 Test #6: TutorialComp7....................   Passed    0.02 sec

   Start 7: TutorialComp25

7/9 Test #7: TutorialComp25...................   Passed    0.02 sec

   Start 8: TutorialComp-25

8/9 Test #8: TutorialComp-25..................***Failed  Requiredregular expre

ssion not found.Regex=[-25 is 0

] 0.03 sec

   Start 9: TutorialComp0.0001

9/9 Test #9: TutorialComp0.0001...............   Passed    0.02 sec

 

89% tests passed, 1 tests failed out of 9

 

Total Test time (real) =   0.45 sec

 

The following tests FAILED:

         8 - TutorialComp-25 (Failed)

Performing coverage

 Cannot find any coverage files. IgnoringCoverage request.

Submit files (using http)

   UsingHTTP submit method

  Drop site:http://

  Submit failed, waiting 5 seconds...

  Retry submission: Attempt 1 of 3

  Submit failed, waiting 5 seconds...

  Retry submission: Attempt 2 of 3

  Submit failed, waiting 5 seconds...

  Retry submission: Attempt 3 of 3

  Error when uploading file:F:/VS2010_ZHIZUO/cmake_zhizuo/Testing/20160416-161

2/Build.xml

  Error message was: Couldn't resolve host 'http'

  Problems when submitting via HTTP

Errors while running CTest