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 @@ | |||
| 1 | # Makefile for net selftests | ||
| 2 | |||
| 3 | CC = $(CROSS_COMPILE)gcc | ||
| 4 | CFLAGS = -Wall | ||
| 5 | |||
| 6 | CFLAGS += -I../../../../usr/include/ | ||
| 7 | |||
| 8 | NET_PROGS = socket psock_fanout | ||
| 9 | |||
| 10 | all: $(NET_PROGS) | ||
| 11 | %: %.c | ||
| 12 | $(CC) $(CFLAGS) -o $@ $^ | ||
| 13 | |||
| 14 | run_tests: all | ||
| 15 | @/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]" | ||
| 16 | @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]" | ||
| 17 | |||
| 18 | clean: | ||
| 19 | $(RM) $(NET_PROGS) | ||
