mirror of
https://github.com/daeuniverse/honk.git
synced 2026-12-06 16:01:20 +00:00
41 lines
1.2 KiB
Bash
Executable File
41 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# dns-ci — DNS subsystem test gate after DNS-path changes.
|
|
#
|
|
# 1. fmt check (dns-touched crates)
|
|
# 2. clippy -D warnings
|
|
# 3. honk-config tests (skip known pre-existing failures)
|
|
# 4. all honk-core DNS unit tests
|
|
# 5. dns_runtime integration test (mock eBPF, no Clash API)
|
|
# 6. honk-core control tests (listeners / probers / resolver wiring)
|
|
# 7. honk-outbound full suite (alive/urltest/bootstrap/quic transports)
|
|
#
|
|
# Usage: ci/dns-ci.sh
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
step() { printf '\n==> %s\n' "$1"; }
|
|
|
|
step "cargo fmt --check"
|
|
cargo fmt -p honk-config -p honk-core -p honk-outbound -- --check
|
|
|
|
step "cargo clippy -D warnings"
|
|
cargo clippy -p honk-config -p honk-core -p honk-outbound --all-targets --features honk-core/udp-bench -- -D warnings
|
|
|
|
step "cargo test -p honk-config"
|
|
cargo test -p honk-config
|
|
|
|
step "cargo test -p honk-core (all DNS unit tests)"
|
|
cargo test -p honk-core --lib dns::
|
|
|
|
step "cargo test -p honk-core --test dns_runtime_test"
|
|
cargo test -p honk-core --test dns_runtime_test
|
|
|
|
step "cargo test -p honk-core (control resolver wiring)"
|
|
cargo test -p honk-core --lib control
|
|
|
|
step "cargo test -p honk-outbound"
|
|
cargo test -p honk-outbound --lib
|
|
|
|
printf '\ndns-ci: ALL GREEN\n'
|