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
$(MAKE) zdtm
.PHONY: all
TESTS = unix-callback mem-snap rpc libcriu
other: .FORCE
for t in $(TESTS); do \
$(MAKE) -C $$t run || break; \
done \
zdtm: .FORCE
$(MAKE) zdtm_ns
for t in $(shell echo "$(TST)" | tr ' ' '\n' | grep -Pv $(EXP)); do \
......
all: build/test
.PHONY: all
run: all
./run.sh
build/test: build/test.o
gcc $^ -L ../../lib -lcriu -o $@
......
......@@ -53,7 +53,8 @@ LOOP_PID=${!}
echo "pid ${LOOP_PID}"
title_print "Run test.c"
LD_LIBRARY_PATH=../../../lib
ln -s ../../../lib/libcriu.so libcriu.so.1
LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH
./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
.PHONY: all
run: all
./run.sh
test-c: rpc.pb-c.o test.o
gcc $^ -o $@ -lprotobuf-c
......
......@@ -3,6 +3,9 @@ OBJS=cln srv
all: $(OBJS)
.PHONY: all
run: all
./run.sh
clean:
rm -f $(OBJS)
.PHONY: clean
all: unix-lib.so unix-server unix-client syslog-lib.so
run: all
./run.sh
unix.pb-c.c: 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