Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Heisch, Benjamin
APAL
Commits
b2b85fd9
Commit
b2b85fd9
authored
Aug 04, 2020
by
Benjamin Heisch
Browse files
Some changes on test_cov.sh
parent
36da38e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/test_cov.sh
View file @
b2b85fd9
#!/bin/sh
mkdir
build
cd
build
cmake
-E
env
CXXFLAGS
=
"-g -O0 -Wall -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Woverloaded-virtual -Wwrite-strings -fprofile-arcs -ftest-coverage"
C_FLAGS
=
"-g -O0 -Wall -W -fprofile-arcs -ftest-coverage"
LDFLAGS
=
"-fprofile-arcs -ftest-coverage -lgcov"
cmake
-G
"Ninja"
-DCMAKE_BUILD_TYPE
=
Debug ..
cmake
-E
env
CXXFLAGS
=
"-g -O0 -Wall -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Woverloaded-virtual -Wwrite-strings -fprofile-arcs -ftest-coverage"
C_FLAGS
=
"-g -O0 -Wall -W -fprofile-arcs -ftest-coverage"
LDFLAGS
=
"-fprofile-arcs -ftest-coverage -lgcov"
cmake
-G
"Ninja"
-DCMAKE_BUILD_TYPE
=
Debug ../..
cmake
--build
.
ctest
.
gcovr
--fail-under-line
80
-s
-j4
-r
$(
pwd
)
/../../
$gcovr
--fail-under-line
80
-s
-e
'.*/deps/.*$'
-e
'.*(CMake|(T|t)tl|string_view).*$'
--exclude-directories
"test/|examples/|deps/"
-r
$(
pwd
)
/..
$(
pwd
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment