mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:07:35 +00:00
Tests: Add base structure for LibPDF unit tests
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.
This commit is contained in:
parent
e687e5ba74
commit
07a557194c
3 changed files with 45 additions and 0 deletions
13
Tests/LibPDF/CMakeLists.txt
Normal file
13
Tests/LibPDF/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
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)
|
Loading…
Add table
Add a link
Reference in a new issue