7069a97a14
Currently bpf test run from the Makefile. Move it out of the Makefile to be run from a shell script to allow the test to be run as stand-alone test, in addition to allowing the test run from a make target. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Acked-by: David S. Miller <davem@davemloft.net>
20 lines
393 B
Makefile
20 lines
393 B
Makefile
# Makefile for net selftests
|
|
|
|
CC = $(CROSS_COMPILE)gcc
|
|
CFLAGS = -Wall -O2 -g
|
|
|
|
CFLAGS += -I../../../../usr/include/
|
|
|
|
NET_PROGS = socket psock_fanout psock_tpacket
|
|
|
|
all: $(NET_PROGS)
|
|
%: %.c
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
run_tests: all
|
|
@/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
|
|
@/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
|
|
./test_bpf.sh
|
|
clean:
|
|
$(RM) $(NET_PROGS)
|