ladybird/Tests/LibDNS/CMakeLists.txt
sideshowbarker 6757971d59 Tests/LibDNS: Make TestDNSResolver independent of live DNS
Problem: TestDNSResolver resolved google.com against 1.1.1.1 over the
real network. Whenever a CI runner couldn’t reach external DNS, the
lookup returned no records, and the test failed.

Fix: Stand up a local UDP and TCP server on 127.0.0.1 that answers the
query with a canned A and AAAA record, and point the resolver at it.
2026-06-17 18:27:33 +02:00

8 lines
168 B
CMake

set(TEST_SOURCES
TestDNSMessage.cpp
TestDNSResolver.cpp
)
foreach(source IN LISTS TEST_SOURCES)
ladybird_test("${source}" LibDNS LIBS LibDNS)
endforeach()