criu/scripts/build
Adrian Reber ae55a6ccd5 tests: fix builds on alpine and centos
Install sudo, create test user with ID 1000, install bash,
fix pidfile creation and pidfile chmod.

v2:
 * use sleep to give the criu daemon some time to start up

v3:
 * Andrei is of course right and sleep is not good solution.
   After adding --status-fd support to criu service, this
   is how we now detect that criu is ready.

v4:
 * This was much more complicated than expected which is related
   to the different versions of the tools on the different travis
   test targets. There seems to be a bug in bash on Ubuntu
    https://lists.gnu.org/archive/html/bug-bash/2017-07/msg00039.html
   which prevents using 'read -n1' on Ubuntu. As a workaround
   the result from CRIU's status FD is now read via python.

   Another problem was discovered on alpine with the loop restore test.
   CRIU says to use setsid even if the process is already using setsid.
   As a workaround, still with setsid, this process is now using
   shell-job true for checkpoint and restore.

Parts of v2 have been committed before. So the changes from this commit
are partially already in another commit.

Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-10-30 19:27:52 +03:00
..
binfmt_misc scripts/build/binfmt_misc: fix for bash 2018-05-12 11:44:33 +03:00
Dockerfile.aarch64.hdr travis: use xenial instead of zesty 2017-10-17 08:40:10 +03:00
Dockerfile.aarch64.tmpl travis: add a job to test on the fedora rawhide 2017-10-17 08:40:44 +03:00
Dockerfile.alpine tests: fix builds on alpine and centos 2018-10-30 19:27:52 +03:00
Dockerfile.armv7hf.hdr travis: use xenial instead of zesty 2017-10-17 08:40:10 +03:00
Dockerfile.armv7hf.tmpl travis: add a job to test on the fedora rawhide 2017-10-17 08:40:44 +03:00
Dockerfile.centos tests: fix builds on alpine and centos 2018-10-30 19:27:52 +03:00
Dockerfile.fedora-asan.hdr travis: rollback to fedora 27 2018-05-12 11:45:33 +03:00
Dockerfile.fedora-asan.tmpl travis: add a job to test on the fedora rawhide 2017-10-17 08:40:44 +03:00
Dockerfile.fedora-rawhide-aarch64.hdr travis: check compilation for arm64v8/fedora:rawhide 2017-10-22 06:36:12 +03:00
Dockerfile.fedora-rawhide-aarch64.tmpl travis: check compilation for arm64v8/fedora:rawhide 2017-10-22 06:36:12 +03:00
Dockerfile.fedora-rawhide.hdr travis: add a job to test on the fedora rawhide 2017-10-17 08:40:44 +03:00
Dockerfile.fedora-rawhide.tmpl travis: add a job to test on the fedora rawhide 2017-10-17 08:40:44 +03:00
Dockerfile.fedora.tmpl travis: set python3 as default for fedora containers 2018-07-09 18:26:48 +03:00
Dockerfile.ppc64le.hdr travis: use xenial instead of zesty 2017-10-17 08:40:10 +03:00
Dockerfile.ppc64le.tmpl travis: add a job to test on the fedora rawhide 2017-10-17 08:40:44 +03:00
Dockerfile.s390x.hdr travis: fix building on s390x 2018-07-10 08:38:09 +03:00
Dockerfile.s390x.tmpl travis: add a job to test on the fedora rawhide 2017-10-17 08:40:44 +03:00
Dockerfile.tmpl travis: fix python2 package installation 2018-07-09 18:25:16 +03:00
Dockerfile.x86_64.hdr travis: use xenial instead of zesty 2017-10-17 08:40:10 +03:00
Dockerfile.x86_64.tmpl travis: add a job to test on the fedora rawhide 2017-10-17 08:40:44 +03:00
extract-deb-pkg scripts/build/extract-deb-pkg: fix/improve 2017-10-17 08:40:10 +03:00
Makefile travis: build criu and run tests on centos 2018-07-04 04:16:09 +03:00