criu/test
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
..
compel compel/tests: fix tests on !x86 archs 2017-03-14 21:03:30 +03:00
exhaustive test, pipes: Exhaustive test of shared pipes 2017-11-30 01:18:53 +03:00
inhfd test: Don't leak file descriptor 2018-06-08 10:00:34 +03:00
jenkins test: don't save content of /sys/kernel/debug/tracing/trace 2018-06-08 09:54:22 +03:00
others tests: fix builds on alpine and centos 2018-06-29 01:06:06 +03:00
zdtm unix: test, sk-unix01 -- Fix data sending for be machines 2018-06-23 08:25:42 +03:00
.gitignore gitignores: ignore some more generated files 2017-03-15 00:05:55 +03:00
abrt.sh travis: catch core dump files in error cases 2016-09-06 19:31:20 +03:00
check_actions.py python: specify python2 as .py interpreter 2017-04-17 18:35:58 +03:00
crit-recode.py test: make crit-recode.py python2/python3 compatible 2018-06-08 09:54:22 +03:00
empty-netns-prep.sh test: don't use nsenter in tests 2017-05-19 09:17:20 +03:00
groups.desc zdtm.py: Generator of groups of tests 2015-12-08 14:54:41 +03:00
inhfd.desc zdtm.py: Add inhfd tests for --inherit-fd option 2015-10-19 12:42:01 +03:00
Makefile test/other: add a test to check the --shell-job option 2018-04-06 02:37:28 +03:00
pycriu Adapt zdtm for python3 compatibility 2018-05-25 00:23:00 +03:00
show_action.sh test: Check action scripts to work as we expect 2016-05-06 14:39:25 +03:00
umount2.c zdtm: add a program to umount a test root 2016-09-26 15:42:40 +03:00
zdtm.desc test: Get rid of live directory 2016-02-20 13:40:52 +03:00
zdtm.py zdtm.py: ignore unicode encode errors 2018-06-20 21:20:22 +03:00
zdtm_ct.c test: don't do MS_REC|MS_PRIVATE for host mounts 2016-09-06 19:31:20 +03:00
zdtm_mount_cgroups tests: prevent zdtm_mount_cgroups from failing w/ EBUSY 2016-02-03 16:25:28 +03:00