X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test.sh;h=e17ec4bcc9a170ed9f946500f50c6ea91993174e;hb=fb716f036f2dcc480b50e094351c908720389188;hp=0a0dd50fa1d399cc6b0d4cce49c62160382be8c3;hpb=cbe79e63ce2093b39e68ee7abd7d7362dd3a82e0;p=flowspec-xdp diff --git a/test.sh b/test.sh index 0a0dd50..e17ec4b 100755 --- a/test.sh +++ b/test.sh @@ -7,12 +7,12 @@ COMMUNITY_DROP=" BGP.ext_community: (generic, 0x80060000, 0x0) (generic, 0x80070000, 0xf) (generic, 0x80090000, 0x3f)" DO_TEST() { - clang -g -std=c99 -pedantic -Wall -Wextra -Wno-pointer-arith -Wno-unused-variable -Wno-tautological-constant-out-of-range-compare -Wno-unused-function -Wno-visibility -O3 -emit-llvm -c xdp.c -o xdp.bc + clang -g -std=c99 -pedantic -Wall -Wextra -Wno-pointer-arith -Wno-unused-variable -Wno-unused-function -Wno-tautological-constant-out-of-range-compare -Wno-unused-function -Wno-visibility -O3 -emit-llvm -c xdp.c -o xdp.bc cat xdp.bc | llc -O3 -march=bpf -filetype=obj -o xdp echo "$TEST_PKT" >> rules.h echo "#define TEST_EXP $1" >> rules.h - clang -std=c99 -fsanitize=address -pedantic -Wall -Wextra -Wno-pointer-arith -Wno-unused-variable -Wno-tautological-constant-out-of-range-compare -O0 -g xdp.c -o xdp && ./xdp + clang -std=c99 -fsanitize=address -pedantic -Wall -Wextra -Wno-pointer-arith -Wno-unused-variable -Wno-unused-function -Wno-tautological-constant-out-of-range-compare -O0 -g xdp.c -o xdp && ./xdp } TEST_PKT='#define TEST \