mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	 58797a1289
			
		
	
	
		58797a1289
		
	
	
	
	
		
			
			Using a file(GLOB) to find all the test files in a directory is an easy hack to get things started, but has some drawbacks. Namely, if you add a test, it won't be found again without re-running CMake. `ninja` seems to do this automatically, but it would be nice to one day stop seeing it rechecking our globbed directories.
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			327 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			327 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(TEST_SOURCES
 | |
|     TestHTMLTokenizer.cpp
 | |
| )
 | |
| 
 | |
| foreach(source IN LISTS TEST_SOURCES)
 | |
|     serenity_test("${source}" LibWeb LIBS LibWeb)
 | |
| endforeach()
 | |
| 
 | |
| serenity_testjs_test(test-web.cpp test-web LIBS LibWeb)
 | |
| install(TARGETS test-web RUNTIME DESTINATION bin OPTIONAL)
 | |
| install(FILES tokenizer-test.html DESTINATION usr/Tests/LibWeb)
 |