mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
test: add get-state to mocked cuda-checkpoint tool
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
28c2cb3fd6
commit
21e5f4cfd5
1 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ int main(int argc, char *argv[])
|
||||||
int option_index = 0;
|
int option_index = 0;
|
||||||
static struct option long_options[] = {
|
static struct option long_options[] = {
|
||||||
{ "pid", required_argument, 0, 'p' },
|
{ "pid", required_argument, 0, 'p' },
|
||||||
|
{ "get-state", no_argument, 0, 's' },
|
||||||
{ "get-restore-tid", no_argument, 0, 'g' },
|
{ "get-restore-tid", no_argument, 0, 'g' },
|
||||||
{ "action", required_argument, 0, 'a' },
|
{ "action", required_argument, 0, 'a' },
|
||||||
{ "timeout", required_argument, 0, 't' },
|
{ "timeout", required_argument, 0, 't' },
|
||||||
|
|
@ -31,6 +32,9 @@ int main(int argc, char *argv[])
|
||||||
case 'a':
|
case 'a':
|
||||||
case 't':
|
case 't':
|
||||||
break;
|
break;
|
||||||
|
case 's':
|
||||||
|
printf("running\n");
|
||||||
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
printf("--action - execute an action");
|
printf("--action - execute an action");
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue