satdump/src-testing/main.cpp

33 lines
1.1 KiB
C++
Raw Normal View History

/**********************************************************************
* This file is used for testing random stuff without running the
* whole of SatDump, which comes in handy for debugging individual
* elements before putting them all together in modules...
*
* If you are an user, ignore this file which will not be built by
* default, and if you're a developper in need of doing stuff here...
* Go ahead!
*
* Don't judge the code you might see in there! :)
**********************************************************************/
2026-02-17 13:37:13 +01:00
#include "handlers/experimental/decoupled/rec_backend.h"
#include "handlers/experimental/decoupled/rec_frontend.h"
#include "handlers/experimental/decoupled/test/test_http.h"
2025-07-23 12:21:02 +02:00
#include "init.h"
#include "logger.h"
#include <cmath>
2025-05-26 19:21:10 +01:00
2025-07-23 12:21:02 +02:00
int main(int argc, char *argv[])
{
initLogger();
2026-02-17 13:37:13 +01:00
logger->set_level(slog::LOG_ERROR);
2026-02-19 14:19:41 -03:00
satdump::initSatDump();
2025-07-23 12:21:02 +02:00
completeLoggerInit();
logger->set_level(slog::LOG_TRACE);
2026-02-17 13:37:13 +01:00
auto h = std::make_shared<satdump::handlers::RecFrontendHandler>(std::make_shared<satdump::handlers::TestHttpBackend>(std::make_shared<satdump::handlers::RecBackend>()));
2026-02-17 13:37:13 +01:00
while (1)
;
}