Commit f341c1c7 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Test coverage with artifacts

parent 28fbf33e
......@@ -33,6 +33,11 @@ before_script:
- export MKL_GFORTRAN_SCALAPACK_FCFLAGS_NO_MPI_OMP="$MKL_GFORTRAN_SCALAPACK_NO_MPI_OMP_BASELINE -I$MKL_HOME/include/intel64/lp64"
- export MKL_GFORTRAN_SCALAPACK_LDFLAGS_NO_MPI_OMP="$MKL_GFORTRAN_SCALAPACK_NO_MPI_OMP_BASELINE -Wl,-rpath,$MKL_HOME/lib/intel64"
# define two stages, that way coverage only runs after all other
# tests have been done.
stages:
- test
- coverage
# jobs for intel/gfortran double precision mpi and no openmp
......@@ -66,7 +71,10 @@ gfortran-double-precision-mpi-noomp-jobs:
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
gfortran-double-precision-mpi-noomp-assumed-size-jobs:
tags:
......@@ -77,7 +85,10 @@ gfortran-double-precision-mpi-noomp-assumed-size-jobs:
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision no mpi and no openmp
......@@ -111,7 +122,10 @@ gfortran-double-precision-nompi-noomp-jobs:
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
gfortran-double-precision-nompi-noomp-assumed-size-jobs:
tags:
......@@ -122,7 +136,10 @@ gfortran-double-precision-nompi-noomp-assumed-size-jobs:
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision mpi and openmp
......@@ -181,7 +198,10 @@ gfortran-double-precision-mpi-openmp-special-gcov-jobs:
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision no mpi and openmp
......@@ -240,7 +260,10 @@ gfortran-double-precision-nompi-openmp-special-gcov-jobs:
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision mpi and no openmp ftimings enabled
......@@ -264,7 +287,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-jobs:
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision no mpi and no openmp ftimings enabled
......@@ -288,7 +314,10 @@ gfortran-double-precision-nompi-noopenmp-ftimings-jobs:
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision no mpi and openmp ftimings enabled
......@@ -325,7 +354,10 @@ gfortran-double-precision-nompi-openmp-ftimings-special-gcov-jobs:
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision mpi and openmp ftimings enabled
......@@ -362,7 +394,10 @@ gfortran-double-precision-mpi-openmp-ftimings-special-gcov-jobs:
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- export OMP_NUM_THREADS=1
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision mpi and openmp ftimings and redirect enabled
......@@ -399,7 +434,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-special-gcov-jobs:
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision mpi and no openmp ftimings and redirect enabled
......@@ -423,7 +461,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-jobs:
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision mpi and openmp ftimings and redirect enabled
......@@ -483,7 +524,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-generic-complex-gene
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# jobs for intel/gfortran double precision mpi and no openmp ftimings and redirect enabled
......@@ -520,7 +564,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-generic-complex-ge
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-generic-complex-generic-kernel-assumed-size-jobs:
tags:
......@@ -531,7 +578,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-generic-complex-ge
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real generic simple, compex generic simple
intel-double-precision-mpi-openmp-ftimings-redirect-real-generic-simple-complex-generic-simple-kernel-jobs:
......@@ -588,7 +638,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-generic-simple-compl
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real generic simple, complex generic simple
......@@ -622,7 +675,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-generic-simple-com
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-generic-simple-complex-generic-simple-kernel-assumed-size-jobs:
tags:
......@@ -633,7 +689,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-generic-simple-com
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real sse assembly, complex sse assembly
......@@ -692,7 +751,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-sse_assembly-complex
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real assembly, complex assembly
......@@ -727,7 +789,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-sse_assembly-compl
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-sse_assembly-complex-sse_assembly-kernel-assumed-size-jobs:
tags:
......@@ -738,7 +803,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-sse_assembly-compl
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real sse block2, complex sse block 1
......@@ -798,7 +866,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-sse_block2-complex-s
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real sse block2, complex sse block1
......@@ -832,7 +903,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-sse_block2-complex
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-sse_block2-complex-sse_block1-kernel-assumed-size-jobs:
tags:
......@@ -843,7 +917,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-sse_block2-complex
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real sse block4, complex sse block 2
......@@ -903,7 +980,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-sse_block4-complex-s
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real sse block4, complex sse block 2
......@@ -938,7 +1018,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-sse_block4-complex
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-sse_block4-complex-sse_block2-kernel-assumed-size-jobs:
tags:
......@@ -949,7 +1032,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-sse_block4-complex
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real sse block6, complex avx block1
......@@ -1007,7 +1093,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-sse_block6-complex-a
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# real sse block6, complex avx block1
......@@ -1041,7 +1130,10 @@ gfortran-double-precision-noopenmp-mpi-ftimings-redirect-real-sse_block6-complex
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
gfortran-double-precision-noopenmp-mpi-ftimings-redirect-real-sse_block6-complex-avx_block1-kernel-assumed-size-jobs:
tags:
......@@ -1052,7 +1144,10 @@ gfortran-double-precision-noopenmp-mpi-ftimings-redirect-real-sse_block6-complex
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
#real avx block2, complex avx block2
......@@ -1111,7 +1206,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-avx_block2-complex-a
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
#real avx block2, complex avx block2
......@@ -1215,7 +1313,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-avx_block4-complex-a
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
#real avx block4, complex block2
......@@ -1318,7 +1419,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-avx_block6-complex-a
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
#real avx block6 , complex block2
......@@ -1398,7 +1502,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-avx2_block2-complex-
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- /home/elpa/bin/sde-external-7.45.0-2016-05-09-lin/sde -hsw -- make check TEST_FLAGS='150 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
#real avx2 block2, complex avx2 block1 (emulated)
......@@ -1422,7 +1529,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-avx2_block2-comple
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- /home/elpa/bin/sde-external-7.45.0-2016-05-09-lin/sde -hsw -- make check TEST_FLAGS='150 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
#real avx2 block4, complex avx2 block2 (emulated)
......@@ -1459,7 +1569,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-avx2_block4-complex-
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- /home/elpa/bin/sde-external-7.45.0-2016-05-09-lin/sde -hsw -- make check TEST_FLAGS='150 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
#real avx2 block4, complex avx2 block2 (emulated)
......@@ -1483,7 +1596,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-avx2_block4-comple
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- /home/elpa/bin/sde-external-7.45.0-2016-05-09-lin/sde -hsw -- make check TEST_FLAGS='150 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
#real avx2 block6, complex avx2 block2 (emulated)
......@@ -1520,7 +1636,10 @@ gfortran-double-precision-mpi-openmp-ftimings-redirect-real-avx2_block6-complex-
- export OMP_NUM_THREADS=1
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- /home/elpa/bin/sde-external-7.45.0-2016-05-09-lin/sde -hsw -- make check TEST_FLAGS='150 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
#real avx2 block6, complex avx2 block2 (emulated)
......@@ -1544,7 +1663,10 @@ gfortran-double-precision-mpi-noopenmp-ftimings-redirect-real-avx2_block6-comple
- make -j 8
- export LD_LIBRARY_PATH=$MKL_HOME/lib/intel64:$LD_LIBRARY_PATH
- /home/elpa/bin/sde-external-7.45.0-2016-05-09-lin/sde -hsw -- make check TEST_FLAGS='150 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# testing of kernel settinv via environment
......@@ -1587,7 +1709,10 @@ gfortran-set-kernel-via-environment-variable-mpi-openmp-special-gcov-job:
- export COMPLEX_ELPA_KERNEL=COMPLEX_ELPA_KERNEL_GENERIC
- export OMP_NUM_THREADS=1
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
intel-set-kernel-via-environment-variable-mpi-noopenmp-job:
tags:
......@@ -1612,7 +1737,10 @@ gfortran-set-kernel-via-environment-variable-mpi-noopenmp-job:
- export REAL_ELPA_KERNEL=REAL_ELPA_KERNEL_GENERIC
- export COMPLEX_ELPA_KERNEL=COMPLEX_ELPA_KERNEL_GENERIC
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
intel-set-kernel-via-environment-variable-nompi-openmp-job:
tags:
......@@ -1652,7 +1780,10 @@ gfortran-set-kernel-via-environment-variable-nompi-openmp-special-gcov-job:
- export COMPLEX_ELPA_KERNEL=COMPLEX_ELPA_KERNEL_GENERIC
- export OMP_NUM_THREADS=1
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
intel-set-kernel-via-environment-variable-nompi-noopenmp-job:
tags:
......@@ -1677,7 +1808,10 @@ gfortran-set-kernel-via-environment-variable-nompi-noopenmp-job:
- export REAL_ELPA_KERNEL=REAL_ELPA_KERNEL_GENERIC
- export COMPLEX_ELPA_KERNEL=COMPLEX_ELPA_KERNEL_GENERIC
- make check TEST_FLAGS='1500 50 16'
- ./test_scripts/get_coverage_summary.sh
- ./ci_coverage_collect
artifacts:
paths:
- coverage_data
# test distcheck
......@@ -1716,3 +1850,13 @@ test_project:
- rm -rf installdest
- popd
# print coverage results
total_coverage:
stage: coverage
tags:
- cpu
script:
- ./ci_coverage_summary
artifacts:
paths:
- coverage_data
#!/bin/bash
cov_dir=coverage_data
cov_file=$cov_dir/coverage_${CI_BUILD_REF}_${CI_BUILD_NAME}.info
mkdir -p $cov_dir/
lcov --capture \
$(find src/ -name "*.gcn[ao]" | xargs -n 1 dirname | sort -u | grep -v ftimings | xargs -n 1 echo --directory) \
--output-file $cov_file
lcov -r $cov_file "/usr/*" -o $cov_file
lcov -r $cov_file "/afs/*" -o $cov_file
lcov -r $cov_file "src/ftimings" -o $cov_file
#!/bin/bash
lcov $(for i in coverage_data/coverage_${CI_BUILD_REF}_*.info; do echo -a $i; done) -o coverage_data/coverage_${CI_BUILD_REF}.info
lcov --summary coverage_data/coverage_${CI_BUILD_REF}.info 2>&1 | \
awk '/lines|functions/ {
gsub(/\.*:$/, "", $1);
gsub(/^./, "", $3);
printf "%s: %s (%s of %s), ", $1, $2, $3, $5;
}
/branches/ {
print "";
}' | \
sed 's/^/__COVERAGE__:/; s/, $//;'
genhtml coverage_data/coverage_${CI_BUILD_REF}.info -o coverage_data
#/bin/bash
mkdir -p /data/elpa/gitlab/coverage/`git log | head -n 1 | sed -r s/commit\ // | cut -c1-16`
lcov -q --capture --directory src/.libs --directory src/elpa2_kernels --output-file coverage_all.info && lcov -q ./coverage_all.info /usr/lib64/\* -r ./coverage_all.info /afs/ipp-garching.mpg.de/common/soft/gcc/4.9.3/@sys/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/* > ./coverage_all_cleaned_$(git log | head -n 1 | sed -r s/commit\ // | cut -c1-16)_"$(pidof pidof)".info
mv coverage_all_cleaned_* /data/elpa/gitlab/coverage/`git log | head -n 1 | sed -r s/commit\ // | cut -c1-16`
lcov $(for f in /data/elpa/gitlab/coverage/`git log | head -n 1 | sed -r s/commit\ // | cut -c1-16`/*; do echo "-a $f"; done) -o info.out
lcov --summary info.out 2>&1 | awk '/lines|functions/ {gsub(/\.*:$/, "", $1); gsub(/^./, "", $3); printf "%s: %s (%s of %s), ", $1, $2, $3, $5; } /branches/ {print "";}' | sed 's/^/__COVERAGE__:/; s/, $//;'
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