Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
xerus
xerus
Commits
8c232733
Commit
8c232733
authored
May 29, 2017
by
Ben Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coverage test in gitlab ci
parent
df114fdf
Pipeline
#748
passed with stages
in 8 minutes and 23 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
.config.mk.ci.gcc
.config.mk.ci.gcc
+2
-1
.config.mk.ci.gcc.nocheck
.config.mk.ci.gcc.nocheck
+1
-1
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
src/xerus/test/test.cpp
src/xerus/test/test.cpp
+7
-0
No files found.
.config.mk.ci.gcc
View file @
8c232733
...
...
@@ -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
.config.mk.ci.gcc.nocheck
View file @
8c232733
...
...
@@ -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
...
...
.gitlab-ci.yml
View file @
8c232733
...
...
@@ -10,7 +10,7 @@ stages:
job_build_homepage
:
stage
:
build_homepage
script
:
"
make
-C
doc
doc;
scp
-r
v
doc/html
xerusweb:libxerus.org-443
/html
"
script
:
"
make
-C
doc
doc;
scp
-r
doc/html
xerusweb:libxerus.org-443"
when
:
always
only
:
-
master
...
...
src/xerus/test/test.cpp
View file @
8c232733
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
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