Commit d50cd344 authored by Artem Kuzmitskiy's avatar Artem Kuzmitskiy Committed by Pavel Emelyanov

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: 's avatarArtem Kuzmitskiy <artem.kuzmitskiy@lge.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b790b586
......@@ -13,7 +13,7 @@ all:
.PHONY: all
TESTS = unix-callback mem-snap rpc libcriu mounts/ext security pipes crit
TESTS = unix-callback mem-snap rpc libcriu mounts/ext security pipes crit socketpairs
other: .FORCE
for t in $(TESTS); do \
......
......@@ -43,5 +43,6 @@ run_test test_errno
echo "== Stopping service"
kill -TERM $(cat wdir/s/pidfile)
unlink libcriu.so.1
[ $RESULT -eq 0 ] && echo "Success" || echo "FAIL"
exit $RESULT
CFLAGS += -Wall
socketpair: socketpair.c
clean:
rm -f socketpair
run: socketpair
./socketpair && \
./socketpair -v && \
./socketpair -m4 && \
true
This diff is collapsed.
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