Commit 876def95 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

test: add a target to execute non-zdtm tests

make -C test other
Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ac2dc9fc
...@@ -9,6 +9,13 @@ all: .FORCE ...@@ -9,6 +9,13 @@ all: .FORCE
$(MAKE) zdtm $(MAKE) zdtm
.PHONY: all .PHONY: all
TESTS = unix-callback mem-snap rpc libcriu
other: .FORCE
for t in $(TESTS); do \
$(MAKE) -C $$t run || break; \
done \
zdtm: .FORCE zdtm: .FORCE
$(MAKE) zdtm_ns $(MAKE) zdtm_ns
for t in $(shell echo "$(TST)" | tr ' ' '\n' | grep -Pv $(EXP)); do \ for t in $(shell echo "$(TST)" | tr ' ' '\n' | grep -Pv $(EXP)); do \
......
all: build/test all: build/test
.PHONY: all .PHONY: all
run: all
./run.sh
build/test: build/test.o build/test: build/test.o
gcc $^ -L ../../lib -lcriu -o $@ gcc $^ -L ../../lib -lcriu -o $@
......
...@@ -53,7 +53,8 @@ LOOP_PID=${!} ...@@ -53,7 +53,8 @@ LOOP_PID=${!}
echo "pid ${LOOP_PID}" echo "pid ${LOOP_PID}"
title_print "Run test.c" title_print "Run test.c"
LD_LIBRARY_PATH=../../../lib ln -s ../../../lib/libcriu.so libcriu.so.1
LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH export LD_LIBRARY_PATH
./test ${LOOP_PID} || _exit $? ./test ${LOOP_PID} || _exit $?
......
run: all
./run.sh
#!/bin/bash
# Don't execute tests, which use maps04, they are executed by zdtm
set -e
#./run-predump-2.sh
./run-predump.sh
./run-snap-auto-dedup.sh
./run-snap-dedup-on-restore.sh
./run-snap-dedup.sh
#./run-snap-maps04.sh
./run-snap.sh
all: test-c rpc_pb2.py all: test-c rpc_pb2.py
.PHONY: all .PHONY: all
run: all
./run.sh
test-c: rpc.pb-c.o test.o test-c: rpc.pb-c.o test.o
gcc $^ -o $@ -lprotobuf-c gcc $^ -o $@ -lprotobuf-c
......
...@@ -3,6 +3,9 @@ OBJS=cln srv ...@@ -3,6 +3,9 @@ OBJS=cln srv
all: $(OBJS) all: $(OBJS)
.PHONY: all .PHONY: all
run: all
./run.sh
clean: clean:
rm -f $(OBJS) rm -f $(OBJS)
.PHONY: clean .PHONY: clean
all: unix-lib.so unix-server unix-client syslog-lib.so all: unix-lib.so unix-server unix-client syslog-lib.so
run: all
./run.sh
unix.pb-c.c: unix.proto unix.pb-c.c: unix.proto
protoc-c --proto_path=. --c_out=. unix.proto protoc-c --proto_path=. --c_out=. unix.proto
......
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