2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 05:18:00 +00:00
criu/test/jenkins/criu-by-id.sh
Andrei Vagin d38851c9bd test/jenkins: use bash to run shell scripts
We permanently have issues like this:
./test/jenkins/criu-iter.sh: 3: source: not found

It looks like a good idea to use one shell to run our jenkins scripts.

Signed-off-by: Andrei Vagin <avagin@gmail.com>
2020-10-20 00:18:24 -07:00

15 lines
428 B
Bash

#!/bin/bash
echo 950000 > /sys/fs/cgroup/cpu,cpuacct/system/cpu.rt_runtime_us
echo 950000 > /sys/fs/cgroup/cpu,cpuacct/system/jenkins.service/cpu.rt_runtime_us
git checkout -f ${TEST_COMMIT}
git clean -dfx &&
make -j 4 && make -j 4 -C test/zdtm &&
mkdir -p test/dump &&
mount -t tmpfs zdtm test/dump &&
make -C test -j 4 zdtm_ns &&
true || {
tar -czf /home/criu-by-id-${TEST_COMMIT}-$(date +%m%d%H%M).tar.gz .
exit 1
}