Change in osmo-pcap[master]: contrib/jenkins.sh: enable external tests

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Tue Dec 10 14:40:36 UTC 2019


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcap/+/16533 )


Change subject: contrib/jenkins.sh: enable external tests
......................................................................

contrib/jenkins.sh: enable external tests

Does not work this way as we don't have sudo enabled in the docker
containers. Just uploading for reference.

Related: OS#4317
Change-Id: I16f878995ecec7ef759799c0080ef79710363a06
---
M contrib/jenkins.sh
1 file changed, 9 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/33/16533/1

diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index f1779dc..c2b7072 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -35,8 +35,16 @@
 
 cd "$base"
 autoreconf --install --force
-PCAP_LIBS="-lpcap" PCAP_CFLAGS="" ./configure --with-pcap-config=/bin/true --enable-sanitize --enable-werror
+PCAP_LIBS="-lpcap" PCAP_CFLAGS="" ./configure \
+	--with-pcap-config=/bin/true \
+	--enable-sanitize \
+	--enable-werror \
+	--enable-external-tests
 $MAKE $PARALLEL_MAKE
+
+# Required for external tests (otherwise: "Failed to open the device: any")
+sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' src/osmo-pcap-client
+
 $MAKE check || cat-testlogs.sh
 DISTCHECK_CONFIGURE_FLAGS="--with-pcap-config=/bin/true" \
         PCAP_LIBS="-lpcap" PCAP_CFLAGS="" \

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/16533
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-Change-Id: I16f878995ecec7ef759799c0080ef79710363a06
Gerrit-Change-Number: 16533
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191210/5655a963/attachment.htm>


More information about the gerrit-log mailing list