mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
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: Andrew Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
790957ea33
commit
08ff91d966
@@ -1,9 +1,17 @@
|
||||
function exit_hook()
|
||||
{
|
||||
test -z "$GCOV" && return
|
||||
make gcov
|
||||
}
|
||||
|
||||
function prep()
|
||||
{
|
||||
# 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/jenkins.service/cpu.rt_runtime_us || true
|
||||
|
||||
test -n "$GCOV" && umask 0000
|
||||
|
||||
ulimit -c unlimited &&
|
||||
export CFLAGS=-g
|
||||
git clean -dfx &&
|
||||
@@ -11,7 +19,7 @@ function prep()
|
||||
make -j 4 -C test/zdtm/ &&
|
||||
make -C test zdtm_ct &&
|
||||
mkdir -p test/report &&
|
||||
true
|
||||
trap exit_hook EXIT
|
||||
}
|
||||
|
||||
function mount_tmpfs_to_dump()
|
||||
|
Reference in New Issue
Block a user