lokinet/test
Jeff 74362149eb
refactor dns subsystem
we want to be able to have multiple locally bound dns sockets in lokinet so
i restructured most of the dns subsystem in order to make this easier.

specifically, we have a new structure to dns subsystem:

* dns::QueryJob_Base

base type for holding a dns query and response with virtual methods
in charge of sending a reply to whoever requested.

* dns::PacketSource_Base

base type for reading and writing dns messages to and from wherever they came from

* dns::Resolver_Base

base type for filtering and handling of dns messages asynchronously.

* dns::Server

contextualized per endpoint dns object, responsible for all dns related isms.

this change hides all impelementation details of all of the dns components.
adds some more helper functions for parsing dns and dealing with OwnedBuffer.

overall dns becomes less of a pain with this new structure. probably.
2022-09-08 14:23:52 -04:00
..
Catch2@dba29b60d6 Update Catch2 to latest to fix build on impish 2021-10-17 16:30:43 -03:00
config * add mockable network functions 2022-07-20 13:36:03 -04:00
crypto Make test code work with new logging 2022-07-18 12:59:13 -03:00
dns DNS message parsing fixes and cleanup 2022-07-20 16:50:38 -03:00
hive
mocks refactor dns subsystem 2022-09-08 14:23:52 -04:00
net Make test code work with new logging 2022-07-18 12:59:13 -03:00
nodedb
path use weak_ptr on a path to reference its parent pathset instead of a bare pointer so crashes dont happen 2021-06-08 14:36:32 -04:00
peerstats Make test code work with new logging 2022-07-18 12:59:13 -03:00
router Make test code work with new logging 2022-07-18 12:59:13 -03:00
routing replace LLARP_PROTO_VERSION macro 2022-05-28 13:18:43 -04:00
service make unit tests happy 2022-08-06 16:04:25 -04:00
util oxen-logging update to handle level/type parsing exceptions 2022-07-19 13:39:00 -03:00
win32
check_main.cpp Make test code work with new logging 2022-07-18 12:59:13 -03:00
CMakeLists.txt Don't build peerstats tests when peer stats disabled 2022-08-30 16:23:06 -03:00
llarp_test.hpp
readme.md add directory specific readmes 2022-07-26 09:26:28 -04:00
test_llarp_encrypted_frame.cpp
test_llarp_router_contact.cpp Make test code work with new logging 2022-07-18 12:59:13 -03:00
test_util.cpp
test_util.hpp

unit tests and such

to enable unit tests, add cmake flag -DWITH_TESTS=ON

unit tests can be built and run with the check target.