TDengine/source/libs/sync/test/syncTest.cpp

24 lines
495 B
C++
Raw Normal View History

#include <gtest/gtest.h>
2022-03-06 09:59:24 +00:00
#include <stdio.h>
2022-02-26 18:24:50 +00:00
#include "syncIO.h"
#include "syncInt.h"
#include "syncRaftStore.h"
2022-02-23 08:14:02 +00:00
2022-03-07 06:18:46 +00:00
void logTest() {
sTrace("--- sync log test: trace");
sDebug("--- sync log test: debug");
sInfo("--- sync log test: info");
sWarn("--- sync log test: warn");
sError("--- sync log test: error");
sFatal("--- sync log test: fatal");
2022-02-22 03:28:15 +00:00
}
2022-02-26 10:30:58 +00:00
2022-02-26 18:24:50 +00:00
int main() {
2022-02-28 06:10:34 +00:00
// taosInitLog((char *)"syncTest.log", 100000, 10);
2022-02-26 18:24:50 +00:00
tsAsyncLog = 0;
sDebugFlag = 143 + 64;
2022-03-07 06:18:46 +00:00
logTest();
2022-02-26 18:24:50 +00:00
return 0;
}