pkd: run with SOCKET_WRAPPER_LIBRARY
Use the socket_wrapper preload shim when running the pkd_hello
test with make test. The end goal here is to get this test
running alongside normal tests in regular CI. Changes to do
- Configure PKD_ENVIRONMENT for the pkd_hello_i1 test in the CMakeLists.txt file.
- Add a --socket-wrapper-dir|-w flag that is used to opt-in to initializing a SOCKET_WRAPPER_DIR as expected by the socket_wrapper library.
A runtime flag is used here to make it easy to run pkd_hello with the socket_wrapper library while avoiding a hard dependency.
Testing done: observed socker_wrapper in effect with strace;
running make test uses the wrapper correctly on my local
Signed-off-by: Jon Simons <firstname.lastname@example.org>
Reviewed-by: Andreas Schneider <email@example.com>