Commit 2e13f1f0 authored by Pavel Emelyanov's avatar Pavel Emelyanov

test: Get rid of live directory

Move static and transition into zdtm top. We can't move all the micro
tests themselves, as we need to distinguish static from non static (zdtm.py
makes additional checks on static ones).
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 02b22eba
{ 'dir': 'zdtm/live/', 'exclude': [ 'static/route_rules', 'static/criu-rtc.so' ] }
{ 'dir': 'zdtm/', 'exclude': [ 'static/route_rules', 'static/criu-rtc.so', 'lib/parseargs.sh', 'lib/stop_and_chk.sh' ] }
......@@ -418,7 +418,7 @@ class zdtm_test:
print " <<< " + "=" * 32
def static(self):
return self.__name.split('/')[2] == 'static'
return self.__name.split('/')[1] == 'static'
def ns(self):
return self.__flavor.ns
......
SUBDIRS = lib live
SUBDIRS = lib static transition
default: all
.PHONY: default lib live
.PHONY: default lib static transition
lib:
$(MAKE) -C lib all
live: lib
$(MAKE) -C live all
static: lib
$(MAKE) -C static all
all: lib live
transition: lib
$(MAKE) -C transition all
all: lib static transition
@true
%:
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
SUBDIRS = transition static
default: all
.PHONY: default
%:
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
include ../../Makefile.inc
include ../Makefile.inc
LIBDIR = ../../lib
LIBDIR = ../lib
LIB = $(LIBDIR)/libzdtmtst.a
override CPPFLAGS += -I$(LIBDIR)
CFLAGS = -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
......@@ -400,7 +400,7 @@ criu-rtc.pb-c.c: criu-rtc.proto
protoc-c --proto_path=. --c_out=. criu-rtc.proto
criu-rtc.so: criu-rtc.c criu-rtc.pb-c.c
$(CC) -g -Wall -shared -nostartfiles criu-rtc.c criu-rtc.pb-c.c -o criu-rtc.so -iquote ../../../../criu/include -fPIC $(USERCFLAGS)
$(CC) -g -Wall -shared -nostartfiles criu-rtc.c criu-rtc.pb-c.c -o criu-rtc.so -iquote ../../../criu/include -fPIC $(USERCFLAGS)
.PHONY: force clean cleandep cleanout realclean start check_start stop wait_stop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment