integration/netconfig: verify wg(8) is available
The kernel used on GitHub actions now allows creating wireguard interfaces apparently.
This commit is contained in:
parent
8c1b3676ab
commit
281f876834
@ -213,6 +213,11 @@ func (w *wgLink) Attrs() *netlink.LinkAttrs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var wireGuardAvailable = func() bool {
|
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
|
// ns must not collide with any namespace used in the test functions: this
|
||||||
// function will be called by the helper process, too.
|
// function will be called by the helper process, too.
|
||||||
const ns = "ns4"
|
const ns = "ns4"
|
||||||
|
@ -12,7 +12,7 @@ RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
|
|||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
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/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user