mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #1564 from MerryMage/this-is-only-a-test
tests: Infrastructure for unit tests
This commit is contained in:
		
						commit
						5edff287b6
					
				
					 8 changed files with 48 additions and 2 deletions
				
			
		|  | @ -5,6 +5,7 @@ add_subdirectory(common) | |||
| add_subdirectory(core) | ||||
| add_subdirectory(video_core) | ||||
| add_subdirectory(audio_core) | ||||
| add_subdirectory(tests) | ||||
| if (ENABLE_SDL2) | ||||
|     add_subdirectory(citra) | ||||
| endif() | ||||
|  |  | |||
							
								
								
									
										16
									
								
								src/tests/CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								src/tests/CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| set(SRCS | ||||
|             tests.cpp | ||||
|             ) | ||||
| 
 | ||||
| set(HEADERS | ||||
|             ) | ||||
| 
 | ||||
| create_directory_groups(${SRCS} ${HEADERS}) | ||||
| 
 | ||||
| include_directories(../../externals/catch/single_include/) | ||||
| 
 | ||||
| add_executable(tests ${SRCS} ${HEADERS}) | ||||
| target_link_libraries(tests core video_core audio_core common) | ||||
| target_link_libraries(tests ${PLATFORM_LIBRARIES}) | ||||
| 
 | ||||
| add_test(NAME tests COMMAND $<TARGET_FILE:tests>) | ||||
							
								
								
									
										9
									
								
								src/tests/tests.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/tests/tests.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| // Copyright 2016 Citra Emulator Project
 | ||||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #define CATCH_CONFIG_MAIN | ||||
| #include <catch.hpp> | ||||
| 
 | ||||
| // Catch provides the main function since we've given it the
 | ||||
| // CATCH_CONFIG_MAIN preprocessor directive.
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue