Skip to content

Commit

Permalink
--initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner65 committed Dec 11, 2024
1 parent f3089bc commit 4a40419
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ if(MagnumPlugins_KtxImageConverter_FOUND)
target_link_libraries(GfxBatchRendererTest PRIVATE MagnumPlugins::KtxImageConverter)
endif()

corrade_add_test(GfxPbrIblTest GfxPbrIblTest.cpp LIBRARIES habitat_sim)
target_include_directories(GfxPbrIblTest PRIVATE ${CMAKE_CURRENT_BINARY_DIR})

corrade_add_test(
GfxReplayTest
GfxReplayTest.cpp
Expand Down
39 changes: 39 additions & 0 deletions src/tests/GfxPbrIblTest.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Copyright (c) Meta Platforms, Inc. and its affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

#include <Corrade/Containers/Optional.h>
#include <Corrade/TestSuite/Compare/Numeric.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/Utility/Path.h>

#include "esp/assets/ResourceManager.h"
#include "esp/core/Logging.h"
#include "esp/metadata/MetadataMediator.h"

#include "configure.h"

namespace {
namespace Cr = Corrade;
namespace Mn = Magnum;

using esp::assets::ResourceManager;
using esp::gfx::LightInfo;
using esp::gfx::LightPositionModel;
using esp::gfx::LightSetup;
using esp::metadata::MetadataMediator;
using esp::sim::Simulator;
using esp::sim::SimulatorConfiguration;

struct GfxPbrIblTest : Cr::TestSuite::Tester {
explicit GfxPbrIblTest();

esp::logging::LoggingContext loggingContext;

}; // struct GfxReplayTest

GfxPbrIblTest::GfxPbrIblTest() {}

} // namespace

CORRADE_TEST_MAIN(GfxPbrIblTest)

0 comments on commit 4a40419

Please sign in to comment.