criu/test/others
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
..
app-emu tests: move app-emu in test/others/ 2016-02-29 11:35:26 +03:00
bers tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
crit test: fix manual crit test 2016-06-28 13:04:00 +03:00
criu-coredump test: add manual test for criu-coredump 2016-06-28 13:04:00 +03:00
exec test/other: check criu exec 2016-08-01 16:51:33 +03:00
ext-links tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
ext-tty python: specify python2 as .py interpreter 2017-04-17 18:35:58 +03:00
libcriu tests: move app-emu in test/others/ 2016-02-29 11:35:26 +03:00
make travis: add "make uninstall" test 2017-04-02 18:09:34 +03:00
mem-snap tests: remove "live" from zdtm paths 2016-02-29 11:35:30 +03:00
mnt-ext-dev others/mnt-ext-dev: Force mke2fs to create a filesystem 2016-08-01 16:51:05 +03:00
mounts tests/others: a few fixes of paths 2016-02-29 11:35:32 +03:00
overlayfs tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
pipes tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
rpc tests: fix builds on alpine and centos 2018-06-29 01:06:06 +03:00
security tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
shell-job test/other: add a test to check the --shell-job option 2018-04-06 02:37:28 +03:00
socketpairs tests/others: a few fixes of paths 2016-02-29 11:35:32 +03:00
tcp tests: move app-emu in test/others/ 2016-02-29 11:35:26 +03:00
unix-callback Add missing "proto2" syntax marker 2016-07-07 12:38:39 +03:00
app-emu.sh tests: move app-emu in test/others/ 2016-02-29 11:35:26 +03:00
env.sh test: add manual test for criu-coredump 2016-06-28 13:04:00 +03:00
functions.sh tests: move app-emu in test/others/ 2016-02-29 11:35:26 +03:00