criu/scripts
Adrian Reber eba1fba8b3 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-06-29 01:06:06 +03:00
..
build tests: fix builds on alpine and centos 2018-06-29 01:06:06 +03:00
nmk Makefiles: auto-detect python version - prefer python2 2018-05-25 00:23:00 +03:00
travis Revert "travis: run test/other/rpc tests" 2018-06-23 10:14:32 +03:00
crit-setup.py lib Makefiles: integrate 2017-03-06 20:44:07 +03:00
criu-ns crns.py: New attempt to have --unshare option 2017-11-30 01:18:53 +03:00
fake-restore.sh zdtm: check an exit code of a straced restore 2018-03-28 00:31:53 +03:00
feature-tests.mak ia32: Get rid of R_X86_64_32S relocation 2017-11-23 20:23:23 +03:00
flake8.cfg zdtm: use flake8 to verify zdtm.py 2016-06-28 13:09:35 +03:00
install-debian-pkgs.sh Add script to install required packages to compile in Debian 2016-09-26 15:42:43 +03:00
magic-gen.py crit: make crit python2/python3 compatible 2018-05-25 00:23:00 +03:00
protobuf-gen.sh build/make: return to make from top directory 2016-08-01 18:38:32 +03:00
systemd-autofs-restart.sh scripts/systemd-autofs-restart.sh: fix variable name 2018-06-20 21:29:39 +03:00
tmp-files.sh tmpfiles: implement user tmp files feature 2016-03-09 12:48:33 +03:00