Commit 8c232733 authored by Ben Huber's avatar Ben Huber

coverage test in gitlab ci

parent df114fdf
Pipeline #748 passed with stages
in 8 minutes and 23 seconds
......@@ -4,6 +4,7 @@
CXX = g++
STRICT_WARNINGS = TRUE
DEBUG += -D XERUS_TEST_COVERAGE # Enable coverage tests
DEBUG += -g # Adds debug symbols
......@@ -14,4 +15,4 @@ BLAS_LIBRARIES = -lopenblas -lgfortran # Openblas, serial
LAPACK_LIBRARIES = -llapacke -llapack # Standard Lapack + Lapacke libraries
SUITESPARSE = -lcholmod -lspqr
OTHER += -I /usr/include/python2.7/ -lboost_python -I/usr/lib64/python2.7/site-packages/numpy/core/include/ -lpython2.7 -fno-var-tracking-assignments
\ No newline at end of file
OTHER += -I /usr/include/python2.7/ -lboost_python -I/usr/lib64/python2.7/site-packages/numpy/core/include/ -lpython2.7 -fno-var-tracking-assignments
......@@ -5,7 +5,7 @@ CXX = g++
STRICT_WARNINGS = TRUE
HIGH_OPTIMIZATION = TRUE # Activates -O3 -march=native and some others
# HIGH_OPTIMIZATION = TRUE # Activates -O3 -march=native and some others
DEBUG += -D XERUS_DISABLE_RUNTIME_CHECKS # Disable all runtime checks
DEBUG += -D XERUS_REPLACE_ALLOCATOR
......
......@@ -10,7 +10,7 @@ stages:
job_build_homepage:
stage: build_homepage
script: "make -C doc doc; scp -rv doc/html xerusweb:libxerus.org-443/html"
script: "make -C doc doc; scp -r doc/html xerusweb:libxerus.org-443"
when: always
only:
- master
......
......@@ -304,14 +304,21 @@ int main(int argc, char* argv[]) {
}
}
uint64_t totalPerformed=0;
uint64_t totalExisting=0;
for (auto &f : perFile) {
std::pair<size_t, size_t> &fstats = f.second;
totalPerformed += fstats.first;
totalExisting += fstats.second;
if (fstats.first == fstats.second) {
std::cout << "file " << f.first << " :\033[1;32m " << fstats.first << " of " << fstats.second << " tests performed\033[0m" << std::endl;
} else {
std::cout << "file " << f.first << " :\033[1;31m " << fstats.first << " of " << fstats.second << " tests performed\033[0m" << std::endl;
}
}
std::cout << "In total: " << totalPerformed << " of " << totalExisting << " = " << 100*double(totalPerformed)/double(totalExisting) << "% covered" << std::endl;
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment