mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-20 16:51:37 +00:00
The previous test uses only libsoccr_restore. This test creates a tcp connection, then it dumps and restore it. travis-ci: success for soccr: add one more test to check libsoccr_save/libsoccr_restore Signed-off-by: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
27 lines
625 B
Makefile
27 lines
625 B
Makefile
CFLAGS += -Wall -g -I../../
|
|
LDFLAGS += -L../ -lsoccr ../libsoccr.a -lnet
|
|
|
|
RUN ?= tcp-constructor
|
|
|
|
run:
|
|
./local.sh
|
|
|
|
tcp-constructor: tcp-constructor.c ../libsoccr.a
|
|
$(CC) $(CFLAGS) tcp-constructor.c -o tcp-constructor $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f tcp-constructor
|
|
|
|
tcp-conn: tcp-conn.c
|
|
$(CC) $(CFLAGS) tcp-conn.c -o tcp-conn $(LDFLAGS)
|
|
|
|
tcp-conn-v6: tcp-conn-v6.c
|
|
$(CC) $(CFLAGS) -DTEST_IPV6 tcp-conn-v6.c -o tcp-conn-v6 $(LDFLAGS)
|
|
|
|
test: tcp-constructor tcp-conn tcp-conn-v6
|
|
unshare -n sh -c "ip link set up dev lo; ./tcp-conn"
|
|
unshare -n sh -c "ip link set up dev lo; ./tcp-conn-v6"
|
|
python run.py ./$(RUN)
|
|
|
|
.PHONY: test
|
|
|