criu/test/others/rpc
Adrian Reber bc169fefb1 RPC: add script to test the new RPC version interface
This script connects to 'criu swrk' and asks for the version. If running
from a git checkout the output would look like this:

 $ ./version.py
 Connecting to CRIU in swrk mode to check the version:
 RPC: Success
 CRIU major 2
 CRIU minor 12
 CRIU gitid v2.12-635-g6d3ae4d

If not running from git checkout it looks like this:

 $ ./version.py
 Connecting to CRIU in swrk mode to check the version:
 RPC: Success
 CRIU major 2
 CRIU minor 12

If running with a CRIU binary which does not support the VERSION
command:

 $ ./version.py
 Connecting to CRIU in swrk mode to check the version:
 Error (cr-service.c:116): RPC error: Invalid req: Success
 RPC: Unexpected msg type

Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-04-11 09:01:10 +03:00
..
.gitignore tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
errno.py tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
loop.sh tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
Makefile test/others/rpc: fix build error 2016-12-05 11:49:18 +03:00
ps_test.py tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
restore-loop.py tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
rpc.proto tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
run.sh tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
test-c.c tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
test.py tests: move non-zdtm tests to tests/others/ 2016-02-24 13:09:17 +03:00
version.py RPC: add script to test the new RPC version interface 2017-04-11 09:01:10 +03:00