# STA_SERVER_learn **Repository Path**: fzy1999/sta_-server_learn ## Basic Information - **Project Name**: STA_SERVER_learn - **Description**: 学习learn 哈哈哈哈哈哈哈哈哈哈哈 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-03-12 - **Last Updated**: 2023-07-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # STA_SERVER_learn #### 介绍 {**以下是 Gitee 平台说明,您可以替换此简介** Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) # 3.12 冯 ``` # if(BASE_RUN_TESTS AND BUILD_PR_FLOW) message(STATUS "RUN BASE TESTS") # declare googletest if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") if(CMAKE_SYSTEM_NAME MATCHES "Windows") include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/win/debug) link_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/win/debug) elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/unix) link_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/unix) endif() else() if(CMAKE_SYSTEM_NAME MATCHES "Windows") include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/win/release) link_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/win/release) elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/unix) link_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/unix) endif() endif() # build test set(SourceFiles # ./test/AdjListGraphTest.cc # ./test/ArrayCompareTest.cc # ./test/ArrayCompareTestSTL.cc # ./test/ArrayListTest.cc # ./test/ArrayTest.cc # ./test/CompareTest.cc # ./test/HashMapTest.cc # ./test/HashSetTest.cc # ./test/ListTest.cc # ./test/LogTest.cc # ./test/MapTest.cc # ./test/MemoryPoolTest.cc # ./test/ScriptEngineTest.cc # ./test/SetTest.cc # ./test/StrTest.cc # ./test/TimeTest.cc # ./test/VectorCompareTest.cc # ./test/VectorCompareTestSTL.cc gg ./test/VectorTest.cc) add_executable(base_test ${SourceFiles}) ``` 进行注释编辑操作后操作后,现在可以编译并运行测试 运行方法 在根目录 mkdir build && cd build && cmake .. && make && ./bin/best_test 存在问题 导致部分测试无法运行 ./bin/base_test: error while loading shared libraries: libabsl_strings.so: cannot open shared object file: No such file or directory