Skip to content

Commit

Permalink
SharedImages test working on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
azrogers committed Oct 1, 2024
1 parent 93a4265 commit b03d1f6
Show file tree
Hide file tree
Showing 105 changed files with 2,241 additions and 8 deletions.
Binary file added Resources/Tests/SharedImages/plane-0-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-0-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-0-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-0-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-0-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-0-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-0-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-0-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-0-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-0-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-1-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-2-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-3-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-4-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-5-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-6-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-7-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-8-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-0.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-1.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-2.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-3.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-4.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-5.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-6.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-7.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-8.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/plane-9-9.glb
Binary file not shown.
Binary file added Resources/Tests/SharedImages/texture0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Tests/SharedImages/texture1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,228 changes: 2,228 additions & 0 deletions Resources/Tests/SharedImages/tileset.json

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions Source/CesiumRuntime/Private/Tests/Cesium3DTileset.spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "CesiumTestHelpers.h"
#include "Engine/World.h"
#include "GlobeAwareDefaultPawn.h"
#include "Interfaces/IPluginManager.h"
#include "Misc/AutomationTest.h"
#include "Tests/AutomationCommon.h"
#include "Tests/AutomationTestSettings.h"
Expand All @@ -26,6 +27,16 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST(
EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter);

static void setupForSharedImages(SceneGenerationContext& context) {
static FString Path =
IPluginManager::Get().FindPlugin(TEXT("CesiumForUnreal"))->GetBaseDir();
// IPluginManager returns a relative path by default - convert it to an
// absolute path.
const FString FullPluginsPath =
IFileManager::Get().ConvertToAbsolutePathForExternalAppForRead(*Path);
static FString TilesetPath =
TEXT("file://") / FullPluginsPath /
TEXT("Resources/Tests/SharedImages/tileset.json");

context.setCommonProperties(
FVector(21.16677692, -67.38013505, -6375355.1944),
FVector(-12, -1300, -5),
Expand All @@ -46,14 +57,7 @@ static void setupForSharedImages(SceneGenerationContext& context) {

ACesium3DTileset* tileset = context.world->SpawnActor<ACesium3DTileset>();
tileset->SetTilesetSource(ETilesetSource::FromUrl);
// Unreal returns the relative path of the plugins directory by default
FString FullPluginsPath =
IFileManager::Get().ConvertToAbsolutePathForExternalAppForRead(
*FPaths::ProjectPluginsDir());
tileset->SetUrl(FString::Printf(
TEXT(
"file://%scesium-unreal/extern/cesium-native/Cesium3DTilesSelection/test/data/SharedImages/tileset.json"),
*FullPluginsPath));
tileset->SetUrl(TilesetPath);

tileset->SetActorLabel(TEXT("SharedImages"));
tileset->SetGeoreference(georeference);
Expand Down
1 change: 1 addition & 0 deletions Source/CesiumRuntime/Private/Tests/CesiumTestHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#if WITH_EDITOR
#include "Editor/EditorPerformanceSettings.h"
#include "Interfaces/IPluginManager.h"
#endif

namespace CesiumTestHelpers {
Expand Down

0 comments on commit b03d1f6

Please sign in to comment.