File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ TESTS += test_iters
88TESTS += test_errno
99TESTS += test_join_ns
1010TESTS += test_pre_dump
11+ TESTS += test_check
1112TESTS += test_feature_check
1213
1314all : $(TESTS )
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ if [ "$(uname -m)" = "x86_64" ]; then
6363fi
6464run_test test_errno
6565run_test test_join_ns
66+ run_test test_check
6667if criu check --feature mem_dirty_track > /dev/null; then
6768 export CRIU_FEATURE_MEM_TRACK=1
6869fi
Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+ #include "criu.h"
3+ #include "lib.h"
4+
5+ int main (int argc , char * * argv )
6+ {
7+ int ret ;
8+
9+ printf ("--- Start check ---\n" );
10+ criu_init_opts ();
11+ criu_set_service_binary (argv [1 ]);
12+
13+ if (criu_check ())
14+ return -1 ;
15+
16+ return 0 ;
17+ }
You can’t perform that action at this time.
0 commit comments