2024-01-03 14:54:25 +01:00
|
|
|
#include <boost/test/included/unit_test.hpp>
|
2023-10-06 11:51:04 +02:00
|
|
|
|
2023-10-05 13:59:32 +02:00
|
|
|
#include <test_common/protocol_logging.hpp>
|
|
|
|
|
|
2024-01-03 14:54:25 +01:00
|
|
|
boost::unit_test::test_suite* init_tests(
|
|
|
|
|
int /*argc*/, char* /*argv*/[]
|
|
|
|
|
) {
|
2023-10-05 13:59:32 +02:00
|
|
|
async_mqtt5::test::logging_enabled() = true;
|
2024-01-03 14:54:25 +01:00
|
|
|
return nullptr;
|
2023-10-05 13:59:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
|
return boost::unit_test::unit_test_main(&init_tests, argc, argv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* usage: ./mqtt-test [boost test --arg=val]*
|
|
|
|
|
* example: ./mqtt-test --log_level=test_suite
|
|
|
|
|
*
|
|
|
|
|
* all boost test parameters can be found here:
|
|
|
|
|
* https://www.boost.org/doc/libs/1_82_0/libs/test/doc/html/boost_test/runtime_config/summary.html
|
|
|
|
|
*/
|