add end-to-end tests

This commit is contained in:
Leo Antunes
2019-07-12 11:08:41 +02:00
parent f4e61df211
commit c2d7929f4a
5 changed files with 99 additions and 3 deletions

17
tests/Dockerfile Normal file
View File

@ -0,0 +1,17 @@
# pushed as costela/wesher-test to speed up testing
FROM golang:1.12-alpine
RUN apk update && apk add git make gcc
RUN go get -d golang.zx2c4.com/wireguard \
&& cd /go/src/golang.zx2c4.com/wireguard \
&& rm donotuseon_linux.go \
&& make install
ENV WG_I_PREFER_BUGGY_USERSPACE_TO_POLISHED_KMOD=1
COPY entrypoint.sh /
WORKDIR /app
ENTRYPOINT [ "/entrypoint.sh" ]