]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - tools/testing/selftests/net/Makefile
Merge tag 'v3.16-rc1' into i2c/for-next
[karo-tx-linux.git] / tools / testing / selftests / net / Makefile
1 # Makefile for net selftests
2
3 CC = $(CROSS_COMPILE)gcc
4 CFLAGS = -Wall -O2 -g
5
6 CFLAGS += -I../../../../usr/include/
7
8 NET_PROGS = socket psock_fanout psock_tpacket
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         @if /sbin/modprobe test_bpf ; then \
18                 /sbin/rmmod test_bpf; \
19                 echo "test_bpf: ok"; \
20         else \
21                 echo "test_bpf: [FAIL]"; \
22                 exit 1; \
23         fi
24 clean:
25         $(RM) $(NET_PROGS)