From ba7d80fcdecf2b8d353ac20661613fa563b5d1ad Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 18 Jun 2023 18:56:41 -0400 Subject: [PATCH] Tests: Move tga test images into tga/ subfolder --- Tests/LibGfx/TestImageDecoder.cpp | 8 ++++---- .../{ => tga}/buggie-bottom-left-compressed.tga | Bin .../{ => tga}/buggie-bottom-left-uncompressed.tga | Bin .../{ => tga}/buggie-top-left-compressed.tga | Bin .../{ => tga}/buggie-top-left-uncompressed.tga | Bin 5 files changed, 4 insertions(+), 4 deletions(-) rename Tests/LibGfx/test-inputs/{ => tga}/buggie-bottom-left-compressed.tga (100%) rename Tests/LibGfx/test-inputs/{ => tga}/buggie-bottom-left-uncompressed.tga (100%) rename Tests/LibGfx/test-inputs/{ => tga}/buggie-top-left-compressed.tga (100%) rename Tests/LibGfx/test-inputs/{ => tga}/buggie-top-left-uncompressed.tga (100%) diff --git a/Tests/LibGfx/TestImageDecoder.cpp b/Tests/LibGfx/TestImageDecoder.cpp index 3fc388f41a..3c21bac4b4 100644 --- a/Tests/LibGfx/TestImageDecoder.cpp +++ b/Tests/LibGfx/TestImageDecoder.cpp @@ -240,7 +240,7 @@ TEST_CASE(test_ppm) TEST_CASE(test_targa_bottom_left) { - auto file = MUST(Core::MappedFile::map(TEST_INPUT("buggie-bottom-left-uncompressed.tga"sv))); + auto file = MUST(Core::MappedFile::map(TEST_INPUT("tga/buggie-bottom-left-uncompressed.tga"sv))); EXPECT(MUST(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes()))); auto plugin_decoder = MUST(Gfx::TGAImageDecoderPlugin::create(file->bytes())); MUST(plugin_decoder->initialize()); @@ -255,7 +255,7 @@ TEST_CASE(test_targa_bottom_left) TEST_CASE(test_targa_top_left) { - auto file = MUST(Core::MappedFile::map(TEST_INPUT("buggie-top-left-uncompressed.tga"sv))); + auto file = MUST(Core::MappedFile::map(TEST_INPUT("tga/buggie-top-left-uncompressed.tga"sv))); EXPECT(MUST(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes()))); auto plugin_decoder = MUST(Gfx::TGAImageDecoderPlugin::create(file->bytes())); MUST(plugin_decoder->initialize()); @@ -270,7 +270,7 @@ TEST_CASE(test_targa_top_left) TEST_CASE(test_targa_bottom_left_compressed) { - auto file = MUST(Core::MappedFile::map(TEST_INPUT("buggie-bottom-left-compressed.tga"sv))); + auto file = MUST(Core::MappedFile::map(TEST_INPUT("tga/buggie-bottom-left-compressed.tga"sv))); EXPECT(MUST(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes()))); auto plugin_decoder = MUST(Gfx::TGAImageDecoderPlugin::create(file->bytes())); MUST(plugin_decoder->initialize()); @@ -285,7 +285,7 @@ TEST_CASE(test_targa_bottom_left_compressed) TEST_CASE(test_targa_top_left_compressed) { - auto file = MUST(Core::MappedFile::map(TEST_INPUT("buggie-top-left-compressed.tga"sv))); + auto file = MUST(Core::MappedFile::map(TEST_INPUT("tga/buggie-top-left-compressed.tga"sv))); EXPECT(MUST(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes()))); auto plugin_decoder = MUST(Gfx::TGAImageDecoderPlugin::create(file->bytes())); MUST(plugin_decoder->initialize()); diff --git a/Tests/LibGfx/test-inputs/buggie-bottom-left-compressed.tga b/Tests/LibGfx/test-inputs/tga/buggie-bottom-left-compressed.tga similarity index 100% rename from Tests/LibGfx/test-inputs/buggie-bottom-left-compressed.tga rename to Tests/LibGfx/test-inputs/tga/buggie-bottom-left-compressed.tga diff --git a/Tests/LibGfx/test-inputs/buggie-bottom-left-uncompressed.tga b/Tests/LibGfx/test-inputs/tga/buggie-bottom-left-uncompressed.tga similarity index 100% rename from Tests/LibGfx/test-inputs/buggie-bottom-left-uncompressed.tga rename to Tests/LibGfx/test-inputs/tga/buggie-bottom-left-uncompressed.tga diff --git a/Tests/LibGfx/test-inputs/buggie-top-left-compressed.tga b/Tests/LibGfx/test-inputs/tga/buggie-top-left-compressed.tga similarity index 100% rename from Tests/LibGfx/test-inputs/buggie-top-left-compressed.tga rename to Tests/LibGfx/test-inputs/tga/buggie-top-left-compressed.tga diff --git a/Tests/LibGfx/test-inputs/buggie-top-left-uncompressed.tga b/Tests/LibGfx/test-inputs/tga/buggie-top-left-uncompressed.tga similarity index 100% rename from Tests/LibGfx/test-inputs/buggie-top-left-uncompressed.tga rename to Tests/LibGfx/test-inputs/tga/buggie-top-left-uncompressed.tga