Disable tests that will fail when rwengine=off
authorDave Marchevsky <davemarchevsky@fb.com>
Tue, 11 Jan 2022 23:42:20 +0000 (18:42 -0500)
committerDave Marchevsky <davemarchevsky@fb.com>
Wed, 12 Jan 2022 01:34:02 +0000 (20:34 -0500)
commit074502f351c67c30998881db547afd4712435ce6
treeab61a55eeecac5fd5380be12665eafd74da9d522
parent23a21423a31719bd79e9e975b8f6dca8f7a331e5
Disable tests that will fail when rwengine=off

When ENABLE_LLVM_NATIVECODEGEN is OFF, the bpf module rw_engine code
will not be used. This is the code that generates custom sscanf and
printf functions for BPF map defs. These generated functions are used
to serialize arguments to update_value (and similar calls which take
string as input) to the correct key / value types.

It's still possible to use update_value and its ilk without rw_engine
enabled, just need to use the variants that take raw bytes and do
serialization manually. In the future we can add some simple
sscanf/printfs for common types that can be used without LLVM
generation.

For now, when rw_engine is disabled, it's fine to skip tests that
require these autogenerated functions.
src/cc/bcc_common.cc
src/cc/bcc_common.h
src/python/bcc/libbcc.py
tests/cc/test_bpf_table.cc
tests/python/test_clang.py