Commit 08ff91d9 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

jenkins: build a coverage report if GCOV is set (v2)

v2: set umask to 0000. It's required to generate gcda, gcno files
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 790957ea
function exit_hook()
{
test -z "$GCOV" && return
make gcov
}
function prep() function prep()
{ {
# systemd executes jenkins in a separate sched cgroup. # systemd executes jenkins in a separate sched cgroup.
echo 950000 > /sys/fs/cgroup/cpu,cpuacct/system/cpu.rt_runtime_us || true echo 950000 > /sys/fs/cgroup/cpu,cpuacct/system/cpu.rt_runtime_us || true
echo 950000 > /sys/fs/cgroup/cpu,cpuacct/system/jenkins.service/cpu.rt_runtime_us || true echo 950000 > /sys/fs/cgroup/cpu,cpuacct/system/jenkins.service/cpu.rt_runtime_us || true
test -n "$GCOV" && umask 0000
ulimit -c unlimited && ulimit -c unlimited &&
export CFLAGS=-g export CFLAGS=-g
git clean -dfx && git clean -dfx &&
...@@ -11,7 +19,7 @@ function prep() ...@@ -11,7 +19,7 @@ function prep()
make -j 4 -C test/zdtm/ && make -j 4 -C test/zdtm/ &&
make -C test zdtm_ct && make -C test zdtm_ct &&
mkdir -p test/report && mkdir -p test/report &&
true trap exit_hook EXIT
} }
function mount_tmpfs_to_dump() function mount_tmpfs_to_dump()
......
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