Commit a6f68034 authored by David S. Miller's avatar David S. Miller

net: Move selftests to common net/ subdirectory.

Suggested-by: default avatarDaniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4c1d8d06
...@@ -5,8 +5,7 @@ TARGETS += vm ...@@ -5,8 +5,7 @@ TARGETS += vm
TARGETS += cpu-hotplug TARGETS += cpu-hotplug
TARGETS += memory-hotplug TARGETS += memory-hotplug
TARGETS += efivarfs TARGETS += efivarfs
TARGETS += net-socket TARGETS += net
TARGETS += net-afpacket
all: all:
for TARGET in $(TARGETS); do \ for TARGET in $(TARGETS); do \
......
# Makefile for net-socket selftests
CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall
NET_SOCK_PROGS = socket
all: $(NET_SOCK_PROGS)
%: %.c
$(CC) $(CFLAGS) -o $@ $^
run_tests: all
@/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
clean:
$(RM) $(NET_SOCK_PROGS)
# Makefile for net-socket selftests # Makefile for net selftests
CC = $(CROSS_COMPILE)gcc CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall CFLAGS = -Wall
CFLAGS += -I../../../../usr/include/ CFLAGS += -I../../../../usr/include/
AF_PACKET_PROGS = psock_fanout NET_PROGS = socket psock_fanout
all: $(AF_PACKET_PROGS) all: $(NET_PROGS)
%: %.c %: %.c
$(CC) $(CFLAGS) -o $@ $^ $(CC) $(CFLAGS) -o $@ $^
run_tests: all run_tests: all
@/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
@/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]" @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
clean: clean:
$(RM) $(AF_PACKET_PROGS) $(RM) $(NET_PROGS)
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