X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=flowspec-xdp;a=blobdiff_plain;f=test.sh;h=e17ec4bcc9a170ed9f946500f50c6ea91993174e;hp=0a0dd50fa1d399cc6b0d4cce49c62160382be8c3;hb=7a55a5451c3c8bdf18adf773059c5e80474e6707;hpb=109e2f9ca7608102bbb276296a2cf8389e22c5cb 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 \