diff options
author | 0xb10c <0xb10c@gmail.com> | 2022-02-03 11:25:30 +0100 |
---|---|---|
committer | 0xb10c <0xb10c@gmail.com> | 2022-02-20 14:59:08 +0100 |
commit | c934087b627f7d368458781944f990b0eb479634 (patch) | |
tree | 823261303dd0f00df57faea41931b5fefcc3c2ee /test/config.ini.in | |
parent | 5f44c5c428b696af4214b2519cb2bbeb0e4a1027 (diff) | |
download | bitcoin-c934087b627f7d368458781944f990b0eb479634.tar.xz |
test: checks for tracepoint tests
For testing the USDT tracepoint API in the functional tests we
require:
- that we are on a Linux system*
- that Bitcoin Core is compiled with tracepoints
- that bcc and the the Python bcc module [0] is installed
- that we run the tests with the required permissions**
otherwise we skip the tests.
*: We currently only support tracepoints on Linux. Tracepoints are
not compiled on other platforms.
**: Currently, we check for root permissions via getuid == 0. It's
unclear if it's even possible to run the tests a non-root user
with e.g. CAP_BPF, CAP_PERFMON, and access to /sys/kernel/debug/
tracing/. Anyone running these tests as root should carefully
review them first and then run them in a disposable VM.
[0]: https://github.com/iovisor/bcc/blob/master/INSTALL.md
Diffstat (limited to 'test/config.ini.in')
-rw-r--r-- | test/config.ini.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/config.ini.in b/test/config.ini.in index 8bcba1b39c..d7105c419b 100644 --- a/test/config.ini.in +++ b/test/config.ini.in @@ -25,3 +25,4 @@ RPCAUTH=@abs_top_srcdir@/share/rpcauth/rpcauth.py @ENABLE_ZMQ_TRUE@ENABLE_ZMQ=true @ENABLE_EXTERNAL_SIGNER_TRUE@ENABLE_EXTERNAL_SIGNER=true @ENABLE_SYSCALL_SANDBOX_TRUE@ENABLE_SYSCALL_SANDBOX=true +@ENABLE_USDT_TRACEPOINTS_TRUE@ENABLE_USDT_TRACEPOINTS=true |