mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 15:25:21 +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()
|
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()
|
|||||||
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()
|
||||||
|
Reference in New Issue
Block a user