Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Make test sensitive #400

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 48 additions & 22 deletions .github/workflows/kernel-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,13 @@ jobs:
cmd: |
set -ex

docker exec dae curl 1.1.1.1:443
cat /host/dae.log | grep -F -- '-> 1.1.1.1:443'
cat /host/v2ray.access.log | grep -q 'accepted tcp:1.1.1.1:443'
for i in {1..10}; do
docker exec dae curl 1.1.1.1:443
done
count=\$(cat /host/dae.log | grep -c -F -- '-> 1.1.1.1:443')
((count == 10))
count=\$(cat /host/v2ray.access.log | grep -c -F -- 'accepted tcp:1.1.1.1:443')
((count == 10))

- name: Check WAN IPv4 UDP
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
Expand All @@ -186,9 +190,13 @@ jobs:
cmd: |
set -ex

docker exec dae dig @1.1.1.1 one.one.one.one
cat /host/dae.log | grep -F -- '-> 1.1.1.1:53'
cat /host/v2ray.access.log | grep -q 'accepted udp:1.1.1.1:53'
for i in {1..10}; do
docker exec dae dig @1.1.1.1 one.one.one.one
done
count=\$(cat /host/dae.log | grep -c -F -- '-> 1.1.1.1:53')
((count == 10))
count=\$(cat /host/v2ray.access.log | grep -c -F -- 'accepted udp:1.1.1.1:53')
((count == 10))

- name: Check WAN IPv6 TCP
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
Expand All @@ -197,9 +205,11 @@ jobs:
cmd: |
set -ex

docker exec dae nc -v -w1 2606:4700:4700::1111 443 &> /host/nc.log
cat /host/nc.log | grep -q 'succeeded!'
cat /host/dae.log | grep -F -- '-> [2606:4700:4700::1111]:443'
for i in {1..10}; do
docker exec dae nc -v -w1 2606:4700:4700::1111 443
done
count=\$(cat /host/dae.log | grep -c -F -- '-> [2606:4700:4700::1111]:443')
((count == 10))

- name: Check WAN IPv6 UDP
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
Expand All @@ -208,8 +218,11 @@ jobs:
cmd: |
set -ex

docker exec dae dig @2606:4700:4700::1111 one.one.one.one
cat /host/dae.log | grep -F -- '-> [2606:4700:4700::1111]:53'
for i in {1..10}; do
docker exec dae dig @2606:4700:4700::1111 one.one.one.one
done
count=\$(cat /host/dae.log | grep -c -F -- '-> [2606:4700:4700::1111]:53')
((count == 10))

- name: Setup LAN
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
Expand Down Expand Up @@ -294,9 +307,13 @@ jobs:
cmd: |
set -ex

docker exec dae ip net e dae curl 1.0.0.1
cat /host/dae.log | grep -F -- '-> 1.0.0.1:80'
cat /host/v2ray.access.log | grep -q 'accepted tcp:1.0.0.1:80'
for i in {1..10}; do
docker exec dae ip net e dae curl 1.0.0.1
done
count=\$(cat /host/dae.log | grep -c -F -- '-> 1.0.0.1:80')
((count == 10))
count=\$(cat /host/v2ray.access.log | grep -c -F -- 'accepted tcp:1.0.0.1:80')
((count == 10))

- name: Check LAN IPv4 UDP
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
Expand All @@ -305,9 +322,13 @@ jobs:
cmd: |
set -ex

docker exec dae ip net e dae dig @8.8.4.4 one.one.one.one
cat /host/dae.log | grep -F -- '-> 8.8.4.4:53'
cat /host/v2ray.access.log | grep -q 'accepted udp:8.8.4.4:53'
for i in {1..10}; do
docker exec dae ip net e dae dig @8.8.4.4 one.one.one.one
done
count=\$(cat /host/dae.log | grep -c -F -- '-> 8.8.4.4:53')
((count == 10))
count=\$(cat /host/v2ray.access.log | grep -c -F -- 'accepted udp:8.8.4.4:53')
((count == 10))

- name: Check LAN IPv6 TCP
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
Expand All @@ -316,9 +337,11 @@ jobs:
cmd: |
set -ex

docker exec dae ip net e dae nc -v -w1 2606:4700:4700::1001 80 &> /host/nc.log
cat /host/nc.log | grep -q 'succeeded!'
cat /host/dae.log | grep -F -- '-> [2606:4700:4700::1001]:80'
for i in {1..10}; do
docker exec dae ip net e dae nc -v -w1 2606:4700:4700::1001 80
done
count=\$(cat /host/dae.log | grep -c -F -- '-> [2606:4700:4700::1001]:80')
((count == 10))

- name: Check LAN IPv6 UDP
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
Expand All @@ -327,5 +350,8 @@ jobs:
cmd: |
set -ex

docker exec dae ip net e dae dig @2001:4860:4860::8844 one.one.one.one
cat /host/dae.log | grep -F -- '-> [2001:4860:4860::8844]:53'
for i in {1..10}; do
docker exec dae ip net e dae dig @2001:4860:4860::8844 one.one.one.one
done
count=\$(cat /host/dae.log | grep -c -F -- '-> [2001:4860:4860::8844]:53')
((count == 10))
Loading