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.
8 lines
168 B
CMake
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()
|