net: Move selftests to common net/ subdirectory.
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 19:07:56 +0000 (15:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 19:07:56 +0000 (15:07 -0400)
Suggested-by: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/Makefile
tools/testing/selftests/net-socket/Makefile [deleted file]
tools/testing/selftests/net/Makefile [moved from tools/testing/selftests/net-afpacket/Makefile with 55% similarity]
tools/testing/selftests/net/psock_fanout.c [moved from tools/testing/selftests/net-afpacket/psock_fanout.c with 100% similarity]
tools/testing/selftests/net/run_afpackettests [moved from tools/testing/selftests/net-afpacket/run_afpackettests with 100% similarity]
tools/testing/selftests/net/run_netsocktests [moved from tools/testing/selftests/net-socket/run_netsocktests with 100% similarity]
tools/testing/selftests/net/socket.c [moved from tools/testing/selftests/net-socket/socket.c with 100% similarity]

index 7f50078..a480593 100644 (file)
@@ -5,8 +5,7 @@ TARGETS += vm
 TARGETS += cpu-hotplug
 TARGETS += memory-hotplug
 TARGETS += efivarfs
-TARGETS += net-socket
-TARGETS += net-afpacket
+TARGETS += net
 
 all:
        for TARGET in $(TARGETS); do \
diff --git a/tools/testing/selftests/net-socket/Makefile b/tools/testing/selftests/net-socket/Makefile
deleted file mode 100644 (file)
index 2450fd8..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# 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)
similarity index 55%
rename from tools/testing/selftests/net-afpacket/Makefile
rename to tools/testing/selftests/net/Makefile
index 45f2ffb..bd6e272 100644 (file)
@@ -1,18 +1,19 @@
-# Makefile for net-socket selftests
+# Makefile for net selftests
 
 CC = $(CROSS_COMPILE)gcc
 CFLAGS = -Wall
 
 CFLAGS += -I../../../../usr/include/
 
-AF_PACKET_PROGS = psock_fanout
+NET_PROGS = socket psock_fanout
 
-all: $(AF_PACKET_PROGS)
+all: $(NET_PROGS)
 %: %.c
        $(CC) $(CFLAGS) -o $@ $^
 
 run_tests: all
+       @/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
        @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
 
 clean:
-       $(RM) $(AF_PACKET_PROGS)
+       $(RM) $(NET_PROGS)