mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Add ExtraTests infrastructure
This means * a new cmake option, `CATCH_BUILD_EXTRA_TESTS`, that conditionally includes the ExtraTests subfolder * building and running them on some of the Travis build images * An example configuration test In the future these should be extended to cover most of the configuration options in Catch2, but this is a start.
This commit is contained in:
		@@ -18,6 +18,7 @@ include(CTest)
 | 
			
		||||
option(CATCH_USE_VALGRIND "Perform SelfTests with Valgrind" OFF)
 | 
			
		||||
option(CATCH_BUILD_TESTING "Build SelfTest project" ON)
 | 
			
		||||
option(CATCH_BUILD_EXAMPLES "Build documentation examples" OFF)
 | 
			
		||||
option(CATCH_BUILD_EXTRA_TESTS "Build extra tests" OFF)
 | 
			
		||||
option(CATCH_ENABLE_COVERAGE "Generate coverage for codecov.io" OFF)
 | 
			
		||||
option(CATCH_ENABLE_WERROR "Enable all warnings as errors" ON)
 | 
			
		||||
option(CATCH_INSTALL_DOCS "Install documentation alongside library" ON)
 | 
			
		||||
@@ -48,6 +49,9 @@ if(CATCH_BUILD_EXAMPLES)
 | 
			
		||||
    add_subdirectory(examples)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
if(CATCH_BUILD_EXTRA_TESTS)
 | 
			
		||||
    add_subdirectory(projects/ExtraTests)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
# add catch as a 'linkable' target
 | 
			
		||||
add_library(Catch2 INTERFACE)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user