mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00

* Include log messages in unit tests * Provide an initial time value --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
18 lines
371 B
C++
18 lines
371 B
C++
#include "SerialConsole.h"
|
|
#include "concurrency/OSThread.h"
|
|
#include "gps/RTC.h"
|
|
|
|
#include "TestUtil.h"
|
|
|
|
void initializeTestEnvironment()
|
|
{
|
|
concurrency::hasBeenSetup = true;
|
|
consoleInit();
|
|
#if ARCH_PORTDUINO
|
|
struct timeval tv;
|
|
tv.tv_sec = time(NULL);
|
|
tv.tv_usec = 0;
|
|
perhapsSetRTC(RTCQualityNTP, &tv);
|
|
#endif
|
|
concurrency::OSThread::setup();
|
|
} |