Dev test (#6)

* #feat 增强Fatal级别的底色,修改logging类的方法

* 更新版本号

* 加入test脚本

* fix:conanfile

* test action
This commit is contained in:
youmetme
2024-11-02 12:38:36 +08:00
committed by GitHub
parent 86cf4c4526
commit d61f7b6fde
7 changed files with 52 additions and 32 deletions

View File

@@ -1,8 +1,14 @@
project(test)
enable_testing()
#测试简单基本应用
add_executable(${PROJECT_NAME}simple test_simple.c)
target_link_libraries(${PROJECT_NAME}simple Logging)
target_link_libraries(${PROJECT_NAME}simple logging)
add_test(test_simple ${CMAKE_SOURCE_DIR}/bin/${PROJECT_NAME}simple)
#测试拦截器
add_executable(${PROJECT_NAME}interceptor test_interceptor.c)
target_link_libraries(${PROJECT_NAME}interceptor Logging)
target_link_libraries(${PROJECT_NAME}interceptor logging)
add_test(test_interceptor ${CMAKE_SOURCE_DIR}/bin/${PROJECT_NAME}interceptor)