-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
077 reduced memory usage coverity fix (#86)
* index on master: 2e292e1 Fixed email * Bump year * #48 Delete objects * #48 Unified parser interface * #48 Release only initialized parsers * #51 Package update * #51 Command line * #51 Date update * #51 No nullptr check * #57 Added missing vcd declaration * #57 VCD files update * #57 Updated doc * #57 New version * #63 Code coverage & Coveralls integration * Release 4 branch * #63 Date comparison fix * #63 Local coverage generation * #63 Coverage clean * 072 std out check (#73) * #72 Standard Output check * #72 Test update * #72 Strip paths * #72 Stripped paths * #72 Handle Windows paths * #75 Out of memory exception (#82) * #77 Added signal descriptors * #77 Added prefixes * #77 Consistency check * #77 Cleanup Co-authored-by: Andrzej <endrjux@users.noreply.github.com>
- Loading branch information
1 parent
6d59633
commit 7626ff3
Showing
115 changed files
with
1,450 additions
and
501 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,122 @@ | ||
#The initial configuration came from the article: http://genbattle.bitbucket.org/blog/2016/01/17/c++-travis-ci/ | ||
|
||
sudo: required | ||
dist: trusty | ||
|
||
python: | ||
- "3.5" | ||
|
||
git: | ||
depth: 5 | ||
|
||
#Disable the default Travis submodule behavior. | ||
git: | ||
submodules: false | ||
|
||
env: | ||
global: | ||
#COVERITY_SCAN_TOKEN | ||
- secure: "OtVLkLQ+O18ZOxFCVTotdxWwxOqE0HcCh7LEguFPpPOp5KX9JsBrRdN8Hq689AK+GnQVuYVHkRPdiduYq8CUoLppZy0AMus7muJp2bdnotwufOIZ0r9lqzau9F4HKcdg8LBjyoHq2gnJZgNsSlrma9AGJ8nKBlVCsOJU/2DB0zJ0ufUR92otRsbKlF0TFXC2SARHYL1fgjoJBtwtKyUkHcn5/85EZjUeZGVvvRIA1oqFN2ksHv2QSevSb4auZgi8Gz4LdkQFfWa+SYDoguMYDZCkJRg4kP/ciuAxWfulroXUyAHOGvg29AwkK7hpnFCiGCxm+mOoDousBrJymuqdblwyTzy3d84i1QZQWEAaSROuPA/cpmSPHBvx+H/YTkmdPKXp46728I1wSILOclN1icWll9KhuiDMGY48e2Zmux5SKuLTjg1wzFNrVEwLeiGT7kExWXeKdPMRo/xmH2vPDlBUVrl2z12RRinpGLW0lgG70f5EJl0K30ArNXmFfFZ775nUBokc9nVgK/bjA9t2olRlOC3tzkhgZnDYp7N/AudKeOnpsWeZEQjf9p/o7SjvMvqgbGXL6kZ74n8Jkau1nKIB+9viplLpBInxEYyMSZ/9qFZf3roYmBVYRA8v6G6PsFagYnqp4vl1zGjiO49KEW1jEF56gWKRYuYHQOaebsI=" | ||
#Compilers | ||
- CC=gcc-8 | ||
- CXX=g++-8 | ||
|
||
#Disable the default Travis submodule behavior. | ||
git: | ||
submodules: false | ||
matrix: | ||
fast_finish: true | ||
include: | ||
# Just run tests | ||
- if: NOT branch = coverity_scan | ||
os: linux | ||
dist: trusty | ||
sudo: required | ||
name: "vcdMaker Tests" | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- gcc-8 | ||
- g++-8 | ||
- txt2man | ||
- doxygen | ||
- graphviz | ||
before_script: | ||
- git submodule update --init --recursive | ||
- cd ./sources | ||
script: | ||
- cmake -DUSE_STATIC_PUGIXML=ON -DCMAKE_BUILD_TYPE=Release . | ||
- VERBOSE=1 make | ||
- make check | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- gcc-8 | ||
- g++-8 | ||
- txt2man | ||
- doxygen | ||
- graphviz | ||
# Code coverage | ||
- if: NOT branch = coverity_scan | ||
os: linux | ||
dist: xenial | ||
sudo: required | ||
name: "vcdMaker Code Coverage" | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- gcc-8 | ||
- g++-8 | ||
- txt2man | ||
- doxygen | ||
- graphviz | ||
- lcov | ||
install: | ||
- gem install coveralls-lcov | ||
before_script: | ||
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-5 0 | ||
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-8 100 | ||
- sudo update-alternatives --auto gcov | ||
- wget http://mirrors.kernel.org/ubuntu/pool/universe/l/lcov/lcov_1.13-4_all.deb | ||
- sudo dpkg -i lcov_1.13-4_all.deb | ||
- rm -f lcov_1.13-4_all.deb | ||
- git submodule update --init --recursive | ||
- cd ./sources | ||
- lcov --directory . --zerocounters | ||
script: | ||
- cmake -DUSE_STATIC_PUGIXML=ON -DCMAKE_BUILD_TYPE=Debug -DCODE_COVERAGE=ON . | ||
- VERBOSE=1 make | ||
- make check | ||
after_success: | ||
- lcov --directory . --capture --output-file raw.info | ||
- lcov --remove raw.info '/usr/*' '*/3rdParty/*' '*/test/*' --output-file coverage.info | ||
- lcov --list coverage.info | ||
- coveralls-lcov --repo-token ${COVERALLS_REPO_TOKEN} coverage.info | ||
|
||
coverity_scan: | ||
project: | ||
name: vcdMaker | ||
version: v3.0 | ||
description: Coverity Scan by Travis CI | ||
notification_email: vcdmaker@mail.com | ||
build_command_prepend: "cov-configure --comptype gcc --compiler g++-8 --template && cmake -DUSE_STATIC_PUGIXML=ON -DCMAKE_BUILD_TYPE=Release ." | ||
build_command: "make" | ||
branch_pattern: coverity_scan | ||
|
||
# Blocklist - branches not to be built. RegEx is allowed. | ||
branches: | ||
except: | ||
- r2_release | ||
# Coverity | ||
- if: branch = coverity_scan | ||
os: linux | ||
dist: trusty | ||
sudo: required | ||
name: "vcdMaker Coverity" | ||
env: | ||
- secure: "OtVLkLQ+O18ZOxFCVTotdxWwxOqE0HcCh7LEguFPpPOp5KX9JsBrRdN8Hq689AK+GnQVuYVHkRPdiduYq8CUoLppZy0AMus7muJp2bdnotwufOIZ0r9lqzau9F4HKcdg8LBjyoHq2gnJZgNsSlrma9AGJ8nKBlVCsOJU/2DB0zJ0ufUR92otRsbKlF0TFXC2SARHYL1fgjoJBtwtKyUkHcn5/85EZjUeZGVvvRIA1oqFN2ksHv2QSevSb4auZgi8Gz4LdkQFfWa+SYDoguMYDZCkJRg4kP/ciuAxWfulroXUyAHOGvg29AwkK7hpnFCiGCxm+mOoDousBrJymuqdblwyTzy3d84i1QZQWEAaSROuPA/cpmSPHBvx+H/YTkmdPKXp46728I1wSILOclN1icWll9KhuiDMGY48e2Zmux5SKuLTjg1wzFNrVEwLeiGT7kExWXeKdPMRo/xmH2vPDlBUVrl2z12RRinpGLW0lgG70f5EJl0K30ArNXmFfFZ775nUBokc9nVgK/bjA9t2olRlOC3tzkhgZnDYp7N/AudKeOnpsWeZEQjf9p/o7SjvMvqgbGXL6kZ74n8Jkau1nKIB+9viplLpBInxEYyMSZ/9qFZf3roYmBVYRA8v6G6PsFagYnqp4vl1zGjiO49KEW1jEF56gWKRYuYHQOaebsI=" | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- gcc-8 | ||
- g++-8 | ||
- txt2man | ||
- doxygen | ||
- graphviz | ||
coverity_scan: | ||
project: | ||
name: vcdMaker | ||
version: v4.0 | ||
description: Coverity Scan by Travis CI | ||
notification_email: vcdmaker@mail.com | ||
build_command_prepend: "cov-configure --comptype gcc --compiler g++-8 --template && cmake -DUSE_STATIC_PUGIXML=ON -DCMAKE_BUILD_TYPE=Release ." | ||
build_command: "make" | ||
branch_pattern: coverity_scan | ||
before_script: | ||
- git submodule update --init --recursive | ||
- cd ./sources | ||
script: | ||
- tail cov-int/scm_log.txt | ||
|
||
# Safelist - branches to be built. | ||
branches: | ||
only: | ||
- master | ||
- v3_release | ||
- v4_release | ||
- coverity_scan | ||
|
||
before_script: | ||
- git submodule update --init --recursive | ||
- cd ./sources | ||
|
||
script: | ||
- cmake -DUSE_STATIC_PUGIXML=ON -DCMAKE_BUILD_TYPE=Release . | ||
- VERBOSE=1 make | ||
- make check |
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
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,26 @@ | ||
# clean.cmake | ||
# | ||
# Make clean. | ||
# | ||
# Copyright (c) 2019 vcdMaker team | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
# to deal in the Software without restriction, including without limitation | ||
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
# and/or sell copies of the Software, and to permit persons to whom the | ||
# Software is furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
|
||
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${MAKE_CLEAN_FILES}) | ||
|
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,65 @@ | ||
# codeCoverage.cmake | ||
# | ||
# Code Coverage generation. | ||
# | ||
# Copyright (c) 2019 vcdMaker team | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
# to deal in the Software without restriction, including without limitation | ||
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
# and/or sell copies of the Software, and to permit persons to whom the | ||
# Software is furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
|
||
option(CODE_COVERAGE "Enable code coverage generation") | ||
add_feature_info(GCOV CODE_COVERAGE "Code coverage generation enabled.") | ||
|
||
if (CODE_COVERAGE) | ||
|
||
# Build type must be Debug | ||
if (NOT ${CMAKE_BUILD_TYPE} STREQUAL Debug) | ||
message(FATAL_ERROR "To generate code coverage data Debug build type must be used.") | ||
endif() | ||
|
||
# Generate code coverage just for the Linux target | ||
if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) | ||
add_compile_options(--coverage) | ||
link_libraries(--coverage) | ||
else() | ||
message(FATAL_ERROR "Code coverage generation available only for the GNU compiler.") | ||
endif() | ||
|
||
# Clean code coverage html | ||
list(APPEND MAKE_CLEAN_FILES CodeCoverage) | ||
list(APPEND MAKE_CLEAN_FILES raw.info) | ||
list(APPEND MAKE_CLEAN_FILES vcdMaker.coverage) | ||
|
||
endif() | ||
|
||
add_custom_target(coverage_clean | ||
COMMAND rm -rf CodeCoverage | ||
COMMAND rm -f raw.info vcdMaker.coverage | ||
COMMAND find . -type f -name '*.gcda' -delete | ||
COMMENT "Cleaning code coverage data." | ||
) | ||
|
||
add_custom_target(coverage | ||
COMMAND mkdir CodeCoverage | ||
COMMAND lcov --directory . --capture --rc lcov_branch_coverage=1 --output-file=raw.info | ||
COMMAND lcov --remove raw.info '/usr/*' '*/3rdParty/*' '*/test/*' --rc lcov_branch_coverage=1 --output-file=vcdMaker.coverage | ||
COMMAND genhtml --output-directory CodeCoverage --rc lcov_branch_coverage=1 vcdMaker.coverage | ||
DEPENDS coverage_clean check | ||
COMMENT "Generating code coverage." | ||
) | ||
|
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
Oops, something went wrong.