external tests not enabled in jenkins.sh
The external tests are not running in jenkins. As time of writing, they were broken because the config paths were wrong. I'll submit a patch to fix that.
With that fix, the first 3 tests are running now. However, it fails later:
Failed to verify src/osmo-pcap-client -c /home/user/code/osmo-dev/src/osmo-pcap/doc/examples/osmo-pcap-client/osmo-pcap-client-tls.cfg Current directory: /home/user/code/osmo-dev/src/osmo-pcap Error was [Errno 111] Connection refused
Running the command manually:
$ src/osmo-pcap-client -c /home/user/code/osmo-dev/src/osmo-pcap/doc/examples/osmo-pcap-client/osmo-pcap-client-tls.cfg <0005> ../../../../src/libosmocore/src/vty/telnet_interface.c:104 Available via telnet 127.0.0.1 4237 <0001> osmo_client_core.c:296 Failed to open the device: any: You don't have permission to capture on that device (socket: Operation not permitted) <0001> osmo_client_core.c:234 Filter will only be applied later. Error occurred during reading the below line: pcap filter host www.google.com Failed to set the device. <0001> osmo_client_main.c:236 Failed to parse the config file: /home/user/code/osmo-dev/src/osmo-pcap/doc/examples/osmo-pcap-client/osmo-pcap-client-tls.cfg
With setcap, the tests are passing:
$ sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' src/osmo-pcap-client
However, sudo is not configured in docker, so we can't do that in jenkins.sh.
Updated by osmith almost 2 years ago
- % Done changed from 0 to 10
- https://gerrit.osmocom.org/c/osmo-pcap/+/16531: fix config paths, so the tests are passing again
- https://gerrit.osmocom.org/c/osmo-pcap/+/16532: document how to run the tests (using setcap first)