mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-02 18:13:51 +00:00
build(Linux): use compiler-selected libgcov for coverage (#5597)
This commit is contained in:
1 parent
3841ac593c
commit
f02f1aebbc
2 files changed
+15
-32
No files matched your search
@@ -191,7 +191,9 @@ check() {
|
||||
export CXX="g++${_gcc_env_suffix}"
|
||||
|
||||
cd "${srcdir}/build/tests"
|
||||
./test_sunshine --gtest_color=yes --gtest_output=xml:test_results.xml
|
||||
# Do not silently upload misleading coverage if the gcov runtime cannot
|
||||
# write profile data, such as when its version differs from the compiler.
|
||||
GCOV_EXIT_AT_ERROR=1 ./test_sunshine --gtest_color=yes --gtest_output=xml:test_results.xml
|
||||
|
||||
# Generate coverage report
|
||||
# Run gcovr from the build directory (where all .gcda/.gcno files are)
|
||||
|
||||
Reference in new issue
Block a user