• Adrian Reber's avatar
    RPC: add script to test the new RPC version interface · bc169fef
    Adrian Reber authored
    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: 's avatarAdrian Reber <areber@redhat.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    bc169fef
Name
Last commit
Last update
..
compel Loading commit data...
inhfd Loading commit data...
jenkins Loading commit data...
others Loading commit data...
zdtm Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
abrt.sh Loading commit data...
check_actions.py Loading commit data...
crit-recode.py Loading commit data...
criu.py Loading commit data...
empty-netns-prep.sh Loading commit data...
groups.desc Loading commit data...
inhfd.desc Loading commit data...
rpc_pb2.py Loading commit data...
show_action.sh Loading commit data...
umount2.c Loading commit data...
zdtm.desc Loading commit data...
zdtm.py Loading commit data...
zdtm_ct.c Loading commit data...
zdtm_mount_cgroups Loading commit data...