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:
@ -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"
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user