Commit graph

22 commits

Author SHA1 Message Date
Ruslan Kuprieiev
86bb235b5c test: libcriu: switch to using swrk instead of service
As our tests serve as an example for people on how to preferably
use criu, we need to also switch to swrk.

Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-10-15 14:35:43 +03:00
Ruslan Kuprieiev
9d9518b852 gitignore: ignore binaries from test/libcriu
Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-08-03 17:06:48 +03:00
Artem Kuzmitskiy
d50cd344d0 Add test for dumping\restoring unnamed unix sockets.
* Added test for dumping\restoring of unnamed unix sockets.
  Also test added to test/Makefile. Use make run for launch.

* Cleanup env after call run.sh in test/libcriu.

Signed-off-by: Artem Kuzmitskiy <artem.kuzmitskiy@lge.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-07-29 17:53:39 +03:00
Ruslan Kuprieiev
5551bbb301 test: libcriu: include protobuf dir
We only need a rpc.pb-c.h header.

Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-07-16 14:30:02 +03:00
Andrew Vagin
2fbf267bfe test/libcriu: inlude all required headers
Reported-by: Mr Jenkins
Signed-off-by: Andrew Vagin <avagin@openvz.org>
Acked-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-06-11 19:50:48 +03:00
Andrew Vagin
5f572e0596 libcriu: don't use the shell_job option
Signed-off-by: Andrew Vagin <avagin@openvz.org>
Acked-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-05-14 12:33:14 +03:00
Ruslan Kuprieiev
2802618efa test:libcriu: add cr_errno test
Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-12-22 17:39:00 +03:00
Pavel Emelyanov
7dfcf2a4cb test: Test how criu_dump_iters from library works
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:29:56 +04:00
Pavel Emelyanov
7aee2619c6 test: Cleanup libcriu tests makefile
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:29:35 +04:00
Pavel Emelyanov
43e5d05134 libcriu: Ability to fetch arguments from notifications
After a bit more thinking I found a way to fetch arguments
from notifications -- pass opaque value into callback and
provide a set of calls for exploring one.

With this we can

a) provide more data if service supplies additional fields
   in the future
b) not check the action name to decide whether or not the
   requested argument is available

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:28:55 +04:00
Pavel Emelyanov
5cea861d7f test: Add test for notifications via libcriu
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:28:54 +04:00
Pavel Emelyanov
714dfdb7d9 test: Add lib.c to libcriu tests
Just some common stuff.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:26:48 +04:00
Pavel Emelyanov
5d75c52356 test: Rename libcriu run_sub.sh -> run.sh
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:26:47 +04:00
Pavel Emelyanov
022afe8b2f test: Clean old libcriu tests
New ones cover more and can be used in Jenkins

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:26:45 +04:00
Pavel Emelyanov
afa47b23aa test: Tune libcriu tests launcher (v2)
v2:
* introduce the run_test helper
* fix overall result detection

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:26:43 +04:00
Pavel Emelyanov
fd214e0031 test: Helper for checking child exit status
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:26:42 +04:00
Pavel Emelyanov
f929839ab8 test: Add test for self dump
It's derived from test.c, but is more self-contained
and explicitly checks for both C and R results.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-27 14:26:40 +04:00
Pavel Emelyanov
a137d9fd58 test: A simple test for criu_restore_sub call v2
Which is at the same time the demonstration of how to do the trick.
v2:
* remove stupid sleep 1 synchronization
* run internal version of child, not the external script

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Andrew Vagin <avagin@parallels.com>
2014-06-27 14:24:37 +04:00
Andrew Vagin
876def9546 test: add a target to execute non-zdtm tests
make -C test other

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-24 22:50:43 +04:00
Kir Kolyshkin
1fa0c0c058 test/*Makefile: add/append PHONY targets
...where they are missing.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-01-11 09:12:35 +04:00
Ruslan Kuprieiev
f4f806186c test: libcriu -- check for -EBADE instead of -1
Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-12-18 21:09:03 +04:00
Ruslan Kuprieiev
ca1f60d267 test: libcriu
This test is similiar to test/rpc, and can also be used as an
example of using libcriu.

Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-12-18 14:26:12 +04:00