From 282e8357edbaaf25c340f142e2f4e612cc8020b3 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 18 Jun 2023 18:58:15 -0400 Subject: [PATCH] Tests: Move pbm, pgm, ppm test images into pnm/ subfolder --- Tests/LibGfx/TestImageDecoder.cpp | 6 +++--- Tests/LibGfx/test-inputs/{ => pnm}/buggie-raw.pbm | Bin Tests/LibGfx/test-inputs/{ => pnm}/buggie-raw.pgm | Bin Tests/LibGfx/test-inputs/{ => pnm}/buggie-raw.ppm | Bin 4 files changed, 3 insertions(+), 3 deletions(-) rename Tests/LibGfx/test-inputs/{ => pnm}/buggie-raw.pbm (100%) rename Tests/LibGfx/test-inputs/{ => pnm}/buggie-raw.pgm (100%) rename Tests/LibGfx/test-inputs/{ => pnm}/buggie-raw.ppm (100%) diff --git a/Tests/LibGfx/TestImageDecoder.cpp b/Tests/LibGfx/TestImageDecoder.cpp index 3c21bac4b4..d592b990bd 100644 --- a/Tests/LibGfx/TestImageDecoder.cpp +++ b/Tests/LibGfx/TestImageDecoder.cpp @@ -180,7 +180,7 @@ TEST_CASE(test_jpeg_sof2_12bits) TEST_CASE(test_pbm) { - auto file = MUST(Core::MappedFile::map(TEST_INPUT("buggie-raw.pbm"sv))); + auto file = MUST(Core::MappedFile::map(TEST_INPUT("pnm/buggie-raw.pbm"sv))); EXPECT(Gfx::PBMImageDecoderPlugin::sniff(file->bytes())); auto plugin_decoder = MUST(Gfx::PBMImageDecoderPlugin::create(file->bytes())); MUST(plugin_decoder->initialize()); @@ -195,7 +195,7 @@ TEST_CASE(test_pbm) TEST_CASE(test_pgm) { - auto file = MUST(Core::MappedFile::map(TEST_INPUT("buggie-raw.pgm"sv))); + auto file = MUST(Core::MappedFile::map(TEST_INPUT("pnm/buggie-raw.pgm"sv))); EXPECT(Gfx::PGMImageDecoderPlugin::sniff(file->bytes())); auto plugin_decoder = MUST(Gfx::PGMImageDecoderPlugin::create(file->bytes())); MUST(plugin_decoder->initialize()); @@ -225,7 +225,7 @@ TEST_CASE(test_png) TEST_CASE(test_ppm) { - auto file = MUST(Core::MappedFile::map(TEST_INPUT("buggie-raw.ppm"sv))); + auto file = MUST(Core::MappedFile::map(TEST_INPUT("pnm/buggie-raw.ppm"sv))); EXPECT(Gfx::PPMImageDecoderPlugin::sniff(file->bytes())); auto plugin_decoder = MUST(Gfx::PPMImageDecoderPlugin::create(file->bytes())); MUST(plugin_decoder->initialize()); diff --git a/Tests/LibGfx/test-inputs/buggie-raw.pbm b/Tests/LibGfx/test-inputs/pnm/buggie-raw.pbm similarity index 100% rename from Tests/LibGfx/test-inputs/buggie-raw.pbm rename to Tests/LibGfx/test-inputs/pnm/buggie-raw.pbm diff --git a/Tests/LibGfx/test-inputs/buggie-raw.pgm b/Tests/LibGfx/test-inputs/pnm/buggie-raw.pgm similarity index 100% rename from Tests/LibGfx/test-inputs/buggie-raw.pgm rename to Tests/LibGfx/test-inputs/pnm/buggie-raw.pgm diff --git a/Tests/LibGfx/test-inputs/buggie-raw.ppm b/Tests/LibGfx/test-inputs/pnm/buggie-raw.ppm similarity index 100% rename from Tests/LibGfx/test-inputs/buggie-raw.ppm rename to Tests/LibGfx/test-inputs/pnm/buggie-raw.ppm