File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ set(CMAKE_VERBOSE_MAKEFILE ON)
66option (BUILD_UNITTEST "Build unittest" OFF )
77option (BUILD_DEMO "Build demo" ON )
88option (BUILD_SHARED_LIB "Build shared library" OFF )
9+ option (ENABLE_COVERAGE "Enable Coverage" OFF )
910
1011if (APPLE )
1112 set (OS_TYPE "APPLE" )
@@ -71,6 +72,11 @@ else()
7172 set (SYSTEM_LIBS stdc++ pthread)
7273endif ()
7374
75+ if (ENABLE_COVERAGE)
76+ # coverage option
77+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage" )
78+ endif ()
79+
7480add_subdirectory (src)
7581
7682if (BUILD_UNITTEST)
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33workspace=` pwd`
4- EXTRACT=" ${workspace} /*/op/* ${workspace} /*/util/* ${workspace} /*/request/* ${workspace} /*/response/* ${workspace} /include"
4+ EXTRACT=" ${workspace} /src ${workspace} /include"
55# clear
66rm UTReport -rf
77rm UTResport.tar
Original file line number Diff line number Diff line change 1111
1212namespace qcloud_cos {
1313
14- #define COS_CPP_SDK_VERSON " v5.5.9 "
14+ #define COS_CPP_SDK_VERSON " v5.5.10 "
1515
1616// / 路径分隔符
1717const std::string kPathDelimiter = " /" ;
You can’t perform that action at this time.
0 commit comments