mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:42:45 +00:00 
			
		
		
		
	 07a557194c
			
		
	
	
		07a557194c
		
	
	
	
	
		
			
			Add a unit test for each sample pdf file that currently exists in the anon user's `~/Document/pdf` directory. - linear.pdf - non-linearized.pdf - complex.pdf Each test ensures that the pdf document is parsed and that the page count is the expected one.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			376 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			376 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(TEST_SOURCES
 | |
|     TestPDF.cpp
 | |
| )
 | |
| 
 | |
| foreach(source IN LISTS TEST_SOURCES)
 | |
|     serenity_test("${source}" LibPDF LIBS LibCore LibPDF)
 | |
| endforeach()
 | |
| 
 | |
| install(
 | |
|     FILES "../../Base/home/anon/Documents/pdf/complex.pdf"
 | |
|           "../../Base/home/anon/Documents/pdf/linearized.pdf"
 | |
|           "../../Base/home/anon/Documents/pdf/non-linearized.pdf"
 | |
|     DESTINATION usr/Tests/LibPDF)
 |