From e6c6b1dbd1f7bac54b87278ab88bd495ef5dbd53 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 1 Dec 2025 16:56:56 +0100 Subject: [PATCH] add unit test --- .woodpecker/test.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .woodpecker/test.yaml diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml new file mode 100644 index 0000000..5c718e3 --- /dev/null +++ b/.woodpecker/test.yaml @@ -0,0 +1,24 @@ +matrix: + platform: + - linux/amd64 + +labels: + platform: ${platform} + +steps: + test: + when: + event: [push] + image: alpine:latest + commands: + - apk update + - apk add --no-cache bash build-base gdb pkgconfig meson ninja perl ind-tools + - meson setup --reconfigure build + - ninja -C build + - build/udpxd -l 127.0.0.1:53 -t 8.8.8.8:53 & + - dig +nocmd +noall +answer google.de a @127.0.0.1 + - killall udpxd + - udpxd -l [::1]:53 -t [2001:4860:4860::8888]:53 & + - dig +nocmd +noall +answer google.de a @::1 + - killall udpxd +