criu/soccr/test/Makefile
Radostin Stoyanov ede018176c make: remove checks for python 2 binary
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>
2023-10-22 13:29:25 -07:00

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