tests: remove zdtm.sh (v2)

It was replaced by zdtm.py.

v2: remove zdtm.sh from other scripts
    remove fault-injection, because nobody uses it

Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Andrew Vagin 2016-02-20 19:27:00 +03:00 committed by Pavel Emelyanov
parent 88aaae3ace
commit 2cb4532e26
6 changed files with 1 additions and 1316 deletions

View file

@ -201,7 +201,7 @@ docker-build:
PHONY += docker-build
docker-test:
docker run --rm -it --privileged criu-x86_64 ./test/zdtm.sh -C -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup -x mountpoint
docker run --rm -it --privileged criu-x86_64 ./test/zdtm.py run -a -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup
PHONY += docker-test
help:

View file

@ -1,4 +0,0 @@
source `dirname $0`/criu-lib.sh &&
prep &&
bash ./test/zdtm.sh -C -x '\(fpu\|mmx\|sse\|rtc\|ext_auto\)' &&
true || fail

View file

@ -1,16 +0,0 @@
import sys
start = 0;
end = 0;
for l in sys.stdin:
l = l.split()[0]
s, e = l.split('-')
s = int("0x" + s, 0)
e = int("0x" + e, 0)
if end == s:
end = e;
else:
print "%x-%x" % (start, end)
start = s
end = e
print "%x-%x" % (start, end)

View file

@ -1,2 +0,0 @@
all:
stap -g -d ../../../criu/criu parasite.stp $$RANDOM -c 'bash -x ../zdtm.sh -d -x socket-tcp'

View file

@ -1,44 +0,0 @@
global i, n, fini_cmd = -1, last_cmd
probe process("../../criu/criu").begin
{
i = 0;
/* randint() returns numbers multiple of 5 */
n = randint(20 * 5) / 5
printf("The %d command will be replaced on -1\n", n);
}
probe process("../../criu/criu").function("__parasite_execute_daemon")
{
printf("%s\n", $$parms);
last_cmd = $cmd;
if (++i > n) {
printf("Send invalid command to parasite\n");
$cmd = -1;
}
}
probe process("../../criu/criu").function("__parasite_execute_daemon").return
{
printf("%d\n", $return);
}
probe process("../../criu/criu").function("main").return
{
printf("CRIU exits with code %d\n", $return);
if ( i > n) {
if ($return)
$return = 0;
else {
printf("CRIU exited with zero code\n");
if (fini_cmd < 0 || fini_cmd == last_cmd) {
printf("%d looks like FINI command\n", n);
fini_cmd = last_cmd
} else {
printf("This is the second FINI command %d (%d)",
n, fini_cmd);
$return = 1;
}
}
}
}

File diff suppressed because it is too large Load diff