From 1910dc897699feba6d56bdad20ed3ff5c8af6753 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 16 Jan 2023 14:58:31 +0000 Subject: [PATCH] Tests: Move test PDF files into Tests/LibPDF Let's put test files with the tests themselves, instead of a random user directory. (But still copy them so they appear in the user directory for convenience.) --- Tests/LibPDF/CMakeLists.txt | 13 ++++++++----- .../Documents/pdf => Tests/LibPDF}/complex.pdf | 0 .../Documents/pdf => Tests/LibPDF}/linearized.pdf | Bin .../pdf => Tests/LibPDF}/non-linearized.pdf | Bin .../anon/Documents/pdf => Tests/LibPDF}/type1.pdf | Bin 5 files changed, 8 insertions(+), 5 deletions(-) rename {Base/home/anon/Documents/pdf => Tests/LibPDF}/complex.pdf (100%) rename {Base/home/anon/Documents/pdf => Tests/LibPDF}/linearized.pdf (100%) rename {Base/home/anon/Documents/pdf => Tests/LibPDF}/non-linearized.pdf (100%) rename {Base/home/anon/Documents/pdf => Tests/LibPDF}/type1.pdf (100%) diff --git a/Tests/LibPDF/CMakeLists.txt b/Tests/LibPDF/CMakeLists.txt index f8769e0905..514cea6353 100644 --- a/Tests/LibPDF/CMakeLists.txt +++ b/Tests/LibPDF/CMakeLists.txt @@ -6,8 +6,11 @@ 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) +set(TEST_FILES + complex.pdf + linearized.pdf + non-linearized.pdf + type1.pdf +) +install(FILES ${TEST_FILES} DESTINATION home/anon/Documents/pdf) +install(FILES ${TEST_FILES} DESTINATION usr/Tests/LibPDF) diff --git a/Base/home/anon/Documents/pdf/complex.pdf b/Tests/LibPDF/complex.pdf similarity index 100% rename from Base/home/anon/Documents/pdf/complex.pdf rename to Tests/LibPDF/complex.pdf diff --git a/Base/home/anon/Documents/pdf/linearized.pdf b/Tests/LibPDF/linearized.pdf similarity index 100% rename from Base/home/anon/Documents/pdf/linearized.pdf rename to Tests/LibPDF/linearized.pdf diff --git a/Base/home/anon/Documents/pdf/non-linearized.pdf b/Tests/LibPDF/non-linearized.pdf similarity index 100% rename from Base/home/anon/Documents/pdf/non-linearized.pdf rename to Tests/LibPDF/non-linearized.pdf diff --git a/Base/home/anon/Documents/pdf/type1.pdf b/Tests/LibPDF/type1.pdf similarity index 100% rename from Base/home/anon/Documents/pdf/type1.pdf rename to Tests/LibPDF/type1.pdf