zdtm: Remove unused ARGS variable

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Rename $args into $gen_args

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Introduce $cpt_args

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Introduce per-test criu options

Some tests require custom options for dump and restore. Instead
of hard-coding test names into zdth.sh, introduce the $test.opts
file from which zdtm would pick the needed options.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
test/meme-snap: remove an nonexistent target

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
test: add a script for jenkins to execute non-zdtm tests

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Factor out getting pid of test

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Don't build test for the 2nd time

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Factor out starting the test via Makefule

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Pick up some tests that pass

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
files: Split ghost collecting routine

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
files: Support ghost devices

When we have opened and unlinked chr or blk device, we
shouls also take care of their rdev value. Thus -- new
field in image and some new steps on dump and restore.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Fix deleted_dev and add to the runlist

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Add more verbosity to deleted_dev failure

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
test: add mounts/ext in the "other" list

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
cgroup: rename controller_entry to cg_member_entry

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
files: Support ghost directories restore

If we have opened and rmdir-ed directory, the dump works OK
creating the ghost file and remap, but restore creates _file_
instead of directory.

Fix this.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
zdtm: Add test for opened ghost directory

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
files: Rename prepare_fs into restore_fs

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
files: Split fs restore into prepare and restore

The prepare one will become more complicated soon.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>