mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
This commit removes the checks for the Python 2 binary in the makefile and makes sure that ZDTM tests always use python3. Since support for Python 2 has been dropped, these checks are no longer needed. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
26 lines
625 B
Makefile
26 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"
|
|
python3 run.py ./$(RUN)
|
|
|
|
.PHONY: test
|