ulib/3party/rpc_core/test/main.cpp
tqcq c3b5a29da2
All checks were successful
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m6s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m9s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m17s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m22s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m39s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m48s
linux-x64-gcc / linux-gcc (push) Successful in 2m3s
feat add rpc_core
2024-01-21 16:05:01 +08:00

32 lines
521 B
C++

#include <cstdio>
#include "rpc_core.hpp"
#include "rpc_core/detail/log.h"
#include "test.h"
using namespace rpc_core_test;
int main() {
RPC_CORE_LOG("version: %d", RPC_CORE_VERSION);
printf("\n");
RPC_CORE_LOG("test_serialize...");
test_serialize();
printf("\n");
RPC_CORE_LOG("test_data_packer...");
test_data_packer();
#ifdef RPC_CORE_TEST_PLUGIN
printf("\n");
RPC_CORE_LOG("test_plugin...");
test_plugin();
#endif
printf("\n");
RPC_CORE_LOG("test_rpc...");
test_rpc();
return 0;
}