-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add in-depth testing framework; add additional validation and documentation * fix for overflow * fixes for __safe_add and __safe_sub * additional fixes for increment and decrement * cppcheck fixes * attempt to fix fsanitize option failure * add coverage and more cleaning
- Loading branch information
Showing
9 changed files
with
1,342 additions
and
61 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,6 +1,9 @@ | ||
#local | ||
dist/* | ||
!dist/.gitkeep | ||
*.gcno | ||
*.gcda | ||
*.gcov | ||
|
||
# Prerequisites | ||
*.d | ||
|
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,90 @@ | ||
language: c | ||
|
||
|
||
jobs: | ||
include: | ||
# works on Precise and Trusty | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: 'ppa:ubuntu-toolchain-r/test' | ||
packages: | ||
- g++-4.9 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-4.9" | ||
- STD="-std=gnu99" | ||
- CCFLAGS="-fsanitize=undefined" | ||
|
||
# works on Precise and Trusty | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: 'ppa:ubuntu-toolchain-r/test' | ||
packages: | ||
- gcc-5 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-5" | ||
|
||
# works on Precise and Trusty | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: 'ppa:ubuntu-toolchain-r/test' | ||
packages: | ||
- gcc-6 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-6" | ||
- CCFLAGS="-fsanitize=undefined" | ||
|
||
# works on Precise and Trusty | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: 'ppa:ubuntu-toolchain-r/test' | ||
packages: | ||
- gcc-7 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-7" | ||
- CCFLAGS="-fsanitize=undefined" | ||
|
||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: 'ppa:ubuntu-toolchain-r/test' | ||
packages: | ||
- gcc-8 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-8" | ||
- CCFLAGS="-fsanitize=undefined" | ||
|
||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: 'ppa:ubuntu-toolchain-r/test' | ||
packages: | ||
- gcc-9 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-9" | ||
- CCFLAGS="-fsanitize=undefined" | ||
|
||
|
||
before_install: | ||
- eval "${MATRIX_EVAL}" | ||
|
||
install: | ||
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -qq cppcheck; fi | ||
|
||
script: | ||
- make test | ||
- ./dist/test | ||
- if [ $TRAVIS_OS_NAME == linux ]; then cppcheck --error-exitcode=1 --inline-suppr --enable=warning,performance,information,style --template='{file}:{line},{severity},{id},{message}' ./src/ ; fi | ||
- gcov ./dist/*.gcno | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) |
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,35 @@ | ||
codecov: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
|
||
status: | ||
project: | ||
default: | ||
# basic settings | ||
target: "85%" | ||
base: auto | ||
threshold: 15 | ||
patch: | ||
default: | ||
target: "50%" | ||
changes: no | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
comment: | ||
layout: "reach,diff,flags,tree" | ||
behavior: default | ||
require_changes: no | ||
|
||
ignore: | ||
- "./tests/" |
Oops, something went wrong.