<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcap/+/16533">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">contrib/jenkins.sh: enable external tests<br><br>Does not work this way as we don't have sudo enabled in the docker<br>containers. Just uploading for reference.<br><br>Related: OS#4317<br>Change-Id: I16f878995ecec7ef759799c0080ef79710363a06<br>---<br>M contrib/jenkins.sh<br>1 file changed, 9 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/33/16533/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh</span><br><span>index f1779dc..c2b7072 100755</span><br><span>--- a/contrib/jenkins.sh</span><br><span>+++ b/contrib/jenkins.sh</span><br><span>@@ -35,8 +35,16 @@</span><br><span> </span><br><span> cd "$base"</span><br><span> autoreconf --install --force</span><br><span style="color: hsl(0, 100%, 40%);">-PCAP_LIBS="-lpcap" PCAP_CFLAGS="" ./configure --with-pcap-config=/bin/true --enable-sanitize --enable-werror</span><br><span style="color: hsl(120, 100%, 40%);">+PCAP_LIBS="-lpcap" PCAP_CFLAGS="" ./configure \</span><br><span style="color: hsl(120, 100%, 40%);">+    --with-pcap-config=/bin/true \</span><br><span style="color: hsl(120, 100%, 40%);">+        --enable-sanitize \</span><br><span style="color: hsl(120, 100%, 40%);">+   --enable-werror \</span><br><span style="color: hsl(120, 100%, 40%);">+     --enable-external-tests</span><br><span> $MAKE $PARALLEL_MAKE</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Required for external tests (otherwise: "Failed to open the device: any")</span><br><span style="color: hsl(120, 100%, 40%);">+sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' src/osmo-pcap-client</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> $MAKE check || cat-testlogs.sh</span><br><span> DISTCHECK_CONFIGURE_FLAGS="--with-pcap-config=/bin/true" \</span><br><span>         PCAP_LIBS="-lpcap" PCAP_CFLAGS="" \</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcap/+/16533">change 16533</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-pcap/+/16533"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcap </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I16f878995ecec7ef759799c0080ef79710363a06 </div>
<div style="display:none"> Gerrit-Change-Number: 16533 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>