1
0
mirror of https://github.com/rtr7/router7.git synced 2024-05-06 15:54:52 +00:00

integration/netconfig: verify wg(8) is available

The kernel used on GitHub actions now allows creating wireguard interfaces
apparently.
This commit is contained in:
Michael Stapelberg
2020-07-02 21:14:35 +02:00
parent 8c1b3676ab
commit 281f876834
2 changed files with 6 additions and 1 deletions

View File

@ -213,6 +213,11 @@ func (w *wgLink) Attrs() *netlink.LinkAttrs {
}
var wireGuardAvailable = func() bool {
// The wg tool must also be available for our test to succeed:
if _, err := exec.LookPath("wg"); err == nil {
return false
}
// ns must not collide with any namespace used in the test functions: this
// function will be called by the helper process, too.
const ns = "ns4"

View File

@ -12,7 +12,7 @@ RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
dnsmasq ndisc6 nftables dnsutils strace && \
dnsmasq ndisc6 nftables dnsutils strace wireguard && \
rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src