diff options
author | David S. Miller <davem@davemloft.net> | 2013-03-20 15:07:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 15:07:56 -0400 |
commit | a6f68034de8a5784dfeabb337506254c80b4c8c6 (patch) | |
tree | edb2cce97a947d80676d34fb89c2a0a218bc77f3 /tools | |
parent | 4c1d8d0617a39c8325a7c2fd80ac14bf40fd8cc6 (diff) |
net: Move selftests to common net/ subdirectory.
Suggested-by: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/Makefile | 3 | ||||
-rw-r--r-- | tools/testing/selftests/net-socket/Makefile | 16 | ||||
-rw-r--r-- | tools/testing/selftests/net/Makefile (renamed from tools/testing/selftests/net-afpacket/Makefile) | 9 | ||||
-rw-r--r-- | tools/testing/selftests/net/psock_fanout.c (renamed from tools/testing/selftests/net-afpacket/psock_fanout.c) | 0 | ||||
-rw-r--r-- | tools/testing/selftests/net/run_afpackettests (renamed from tools/testing/selftests/net-afpacket/run_afpackettests) | 0 | ||||
-rw-r--r-- | tools/testing/selftests/net/run_netsocktests (renamed from tools/testing/selftests/net-socket/run_netsocktests) | 0 | ||||
-rw-r--r-- | tools/testing/selftests/net/socket.c (renamed from tools/testing/selftests/net-socket/socket.c) | 0 |
7 files changed, 6 insertions, 22 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 7f50078d0e8c..a4805932972b 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile | |||
@@ -5,8 +5,7 @@ TARGETS += vm | |||
5 | TARGETS += cpu-hotplug | 5 | TARGETS += cpu-hotplug |
6 | TARGETS += memory-hotplug | 6 | TARGETS += memory-hotplug |
7 | TARGETS += efivarfs | 7 | TARGETS += efivarfs |
8 | TARGETS += net-socket | 8 | TARGETS += net |
9 | TARGETS += net-afpacket | ||
10 | 9 | ||
11 | all: | 10 | all: |
12 | for TARGET in $(TARGETS); do \ | 11 | 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 index 2450fd8bb10a..000000000000 --- a/tools/testing/selftests/net-socket/Makefile +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | # Makefile for net-socket selftests | ||
2 | |||
3 | CC = $(CROSS_COMPILE)gcc | ||
4 | CFLAGS = -Wall | ||
5 | |||
6 | NET_SOCK_PROGS = socket | ||
7 | |||
8 | all: $(NET_SOCK_PROGS) | ||
9 | %: %.c | ||
10 | $(CC) $(CFLAGS) -o $@ $^ | ||
11 | |||
12 | run_tests: all | ||
13 | @/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]" | ||
14 | |||
15 | clean: | ||
16 | $(RM) $(NET_SOCK_PROGS) | ||
diff --git a/tools/testing/selftests/net-afpacket/Makefile b/tools/testing/selftests/net/Makefile index 45f2ffb7fda7..bd6e272bab87 100644 --- a/tools/testing/selftests/net-afpacket/Makefile +++ b/tools/testing/selftests/net/Makefile | |||
@@ -1,18 +1,19 @@ | |||
1 | # Makefile for net-socket selftests | 1 | # Makefile for net selftests |
2 | 2 | ||
3 | CC = $(CROSS_COMPILE)gcc | 3 | CC = $(CROSS_COMPILE)gcc |
4 | CFLAGS = -Wall | 4 | CFLAGS = -Wall |
5 | 5 | ||
6 | CFLAGS += -I../../../../usr/include/ | 6 | CFLAGS += -I../../../../usr/include/ |
7 | 7 | ||
8 | AF_PACKET_PROGS = psock_fanout | 8 | NET_PROGS = socket psock_fanout |
9 | 9 | ||
10 | all: $(AF_PACKET_PROGS) | 10 | all: $(NET_PROGS) |
11 | %: %.c | 11 | %: %.c |
12 | $(CC) $(CFLAGS) -o $@ $^ | 12 | $(CC) $(CFLAGS) -o $@ $^ |
13 | 13 | ||
14 | run_tests: all | 14 | run_tests: all |
15 | @/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]" | ||
15 | @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]" | 16 | @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]" |
16 | 17 | ||
17 | clean: | 18 | clean: |
18 | $(RM) $(AF_PACKET_PROGS) | 19 | $(RM) $(NET_PROGS) |
diff --git a/tools/testing/selftests/net-afpacket/psock_fanout.c b/tools/testing/selftests/net/psock_fanout.c index 226e5e33105a..226e5e33105a 100644 --- a/tools/testing/selftests/net-afpacket/psock_fanout.c +++ b/tools/testing/selftests/net/psock_fanout.c | |||
diff --git a/tools/testing/selftests/net-afpacket/run_afpackettests b/tools/testing/selftests/net/run_afpackettests index 7907824c6355..7907824c6355 100644 --- a/tools/testing/selftests/net-afpacket/run_afpackettests +++ b/tools/testing/selftests/net/run_afpackettests | |||
diff --git a/tools/testing/selftests/net-socket/run_netsocktests b/tools/testing/selftests/net/run_netsocktests index c09a682df56a..c09a682df56a 100644 --- a/tools/testing/selftests/net-socket/run_netsocktests +++ b/tools/testing/selftests/net/run_netsocktests | |||
diff --git a/tools/testing/selftests/net-socket/socket.c b/tools/testing/selftests/net/socket.c index 0f227f2f9be9..0f227f2f9be9 100644 --- a/tools/testing/selftests/net-socket/socket.c +++ b/tools/testing/selftests/net/socket.c | |||