mirror of
https://codeberg.org/scip/udpxd.git
synced 2025-12-16 19:40:58 +01:00
add unit test
This commit is contained in:
24
.woodpecker/test.yaml
Normal file
24
.woodpecker/test.yaml
Normal file
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user