Some checks failed
		
		
	
	test on Windows / test (push) Has been cancelled
				test on Linux / test (push) Failing after 7m1s
				* #feat 增强Fatal级别的底色,修改logging类的方法 * 更新版本号 * 加入test脚本 * fix:conanfile * test action * 修复错别字 * add test on windows action * fix test on windows action * fix action on windows * fix * fix 内存分配错误 * fix msvc 不支持中文注释,删除中文注释 * test on windows and test chinese char * ersion 0.2.4 * feature:根据文件大小分割日志 * fix:内存泄露 * fix:使用char偏移单位 * add english brief * 修改api函数名,加入Default关键字,减除歧义 * Multiple substring interceptors * 更新版本号 * #fix 拦截器对level参数无效 * fix * #将拦截器改名为过滤器,更加接近职能 * 更新自述文件 * 更新一些自述文件
		
			
				
	
	
		
			30 lines
		
	
	
		
			969 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			969 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
project(test)
 | 
						|
 | 
						|
enable_testing()
 | 
						|
 | 
						|
#测试简单基本应用
 | 
						|
add_executable(${PROJECT_NAME}simple test-simple.c)
 | 
						|
target_link_libraries(${PROJECT_NAME}simple logging)
 | 
						|
if(UNIX)
 | 
						|
    add_test(test_simple ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}simple)
 | 
						|
elseif(WIN32)
 | 
						|
    add_test(test_simple ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}simple.exe)
 | 
						|
endif()
 | 
						|
 | 
						|
#测试简单基本应用
 | 
						|
add_executable(${PROJECT_NAME}file test-log-file.c)
 | 
						|
target_link_libraries(${PROJECT_NAME}file logging)
 | 
						|
if(UNIX)
 | 
						|
    add_test(test_file ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}file)
 | 
						|
elseif(WIN32)
 | 
						|
    add_test(test_file ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}file.exe)
 | 
						|
endif()
 | 
						|
 | 
						|
#测试拦截器
 | 
						|
add_executable(${PROJECT_NAME}filter test-filter.c)
 | 
						|
target_link_libraries(${PROJECT_NAME}filter logging)
 | 
						|
if(UNIX)
 | 
						|
    add_test(test_filter ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}filter)
 | 
						|
elseif(WIN32)
 | 
						|
    add_test(test_filter ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}filter.exe)
 | 
						|
endif() |