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/testing/selftests/net/Makefile | |
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/testing/selftests/net/Makefile')
-rw-r--r-- | tools/testing/selftests/net/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile new file mode 100644 index 000000000000..bd6e272bab87 --- /dev/null +++ b/tools/testing/selftests/net/Makefile @@ -0,0 +1,19 @@ +# Makefile for net selftests + +CC = $(CROSS_COMPILE)gcc +CFLAGS = -Wall + +CFLAGS += -I../../../../usr/include/ + +NET_PROGS = socket psock_fanout + +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) $(NET_PROGS) |