mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
We don't tune tracers, so we don't expect to get anything. In docker containers, debugfs isn't mounted and this command failed. Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
42 lines
885 B
Bash
42 lines
885 B
Bash
function exit_hook()
|
|
{
|
|
test -z "$GCOV" && return
|
|
make gcov
|
|
}
|
|
|
|
function prep()
|
|
{
|
|
test -n "$SKIP_PREP" && return
|
|
# 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 &&
|
|
make -j 4 &&
|
|
make -j 4 -C test/zdtm/ &&
|
|
make -C test zdtm_ct &&
|
|
mkdir -p test/report &&
|
|
trap exit_hook EXIT
|
|
}
|
|
|
|
function mount_tmpfs_to_dump()
|
|
{
|
|
test -n "$SKIP_PREP" && return
|
|
mkdir -p test/dump &&
|
|
mount -t tmpfs criu_dump test/dump &&
|
|
true
|
|
}
|
|
|
|
function fail()
|
|
{
|
|
set +e
|
|
uname -a
|
|
ps axf --width 256 > ps.log
|
|
tar -czf /home/`basename $0`-${BUILD_NUMBER}-${GIT_COMMIT}-$(date +%m%d%H%M).tar.gz .
|
|
tar -czf report.tar.gz -C test/ report
|
|
exit 1
|
|
}
|