-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Workspaces for Linux and WIndows * GoogleTests run on Linux * Move tests to their own module * Improve test compile time
- Loading branch information
1 parent
88c20e3
commit 20a4876
Showing
21 changed files
with
307 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,5 @@ DerivedDataCache/* | |
TestResults/* | ||
|
||
# VS Code | ||
.vscode | ||
.vscode | ||
*.code-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
@echo off | ||
setlocal enableDelayedExpansion | ||
|
||
set UEDir=C:\Users\bob\Documents\UE5 | ||
set UEDir=..\..\UE5 | ||
set buildScript=!UEDir!\Engine\Build\BatchFiles\Build.bat | ||
set projectDir=%~dp0 | ||
set projectFile=ShapeArt.uproject | ||
set build="!buildScript!" SketchTest Development Win64 "!projectDir!!projectFile!" -waitmutex | ||
set testTarget=Tests | ||
set build="!buildScript!" "!testTarget!" Development Win64 "!projectDir!!projectFile!" -waitmutex | ||
|
||
call !build! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /bin/bash | ||
|
||
UEDir=../../UE5 | ||
buildScript=$UEDir/Engine/Build/BatchFiles/Linux/Build.sh | ||
projectFile=ShapeArt.uproject | ||
testTarget=Tests | ||
build="$buildScript $testTarget Development Linux $PWD/$projectFile -waitmutex" | ||
|
||
echo $build | ||
$build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
|
||
[/Script/HoloLensPlatformEditor.HoloLensTargetSettings] | ||
bBuildForEmulation=False | ||
bBuildForDevice=True | ||
bUseNameForLogo=True | ||
bBuildForRetailWindowsStore=False | ||
bAutoIncrementVersion=False | ||
bShouldCreateAppInstaller=False | ||
AppInstallerInstallationURL= | ||
HoursBetweenUpdateChecks=0 | ||
bEnablePIXProfiling=False | ||
TileBackgroundColor=(B=64,G=0,R=0,A=255) | ||
SplashScreenBackgroundColor=(B=64,G=0,R=0,A=255) | ||
+PerCultureResources=(CultureId="",Strings=(PackageDisplayName="",PublisherDisplayName="",PackageDescription="",ApplicationDisplayName="",ApplicationDescription=""),Images=()) | ||
TargetDeviceFamily=Windows.Holographic | ||
MinimumPlatformVersion= | ||
MaximumPlatformVersionTested=10.0.18362.0 | ||
MaxTrianglesPerCubicMeter=500.000000 | ||
SpatialMeshingVolumeSize=20.000000 | ||
CompilerVersion=Default | ||
Windows10SDKVersion=10.0.18362.0 | ||
+CapabilityList=internetClientServer | ||
+CapabilityList=privateNetworkClientServer | ||
+Uap2CapabilityList=spatialPerception | ||
bSetDefaultCapabilities=False | ||
SpatializationPlugin= | ||
ReverbPlugin= | ||
OcclusionPlugin= | ||
SoundCueCookQualityIndex=-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@echo off | ||
setlocal enableDelayedExpansion | ||
|
||
set testExecutable="C:\Users\bob\Documents\Unreal Projects\ShapeArt\Binaries\Win64\SketchTest.exe" | ||
set testExecutable=".\Binaries\Win64\Tests.exe" | ||
|
||
call !testExecutable! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#! /bin/bash | ||
|
||
./Binaries/Linux/Tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// Copy these contents to ShapeArt.code-workspace | ||
|
||
{ | ||
"folders": [ | ||
{ | ||
"name": "ShapeArt", | ||
"path": "." | ||
}, | ||
{ | ||
"name": "UE5", | ||
"path": "../../UE5" // Change this if needed | ||
} | ||
], | ||
"extensions": { | ||
"recommendations": [ | ||
"ms-vscode.cpptools", | ||
"ms-dotnettools.csharp", | ||
"matepek.vscode-catch2-test-adapter" | ||
] | ||
}, | ||
"launch": { | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run Tests", | ||
"request": "launch", | ||
"program": "${workspaceFolder:ShapeArt}/Binaries/Linux/Tests", | ||
"preLaunchTask": "Tests Build", | ||
"args": [], | ||
"type": "cppdbg", | ||
"cwd": "${workspaceFolder:UE5}" | ||
} | ||
] | ||
}, | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Tests Build", | ||
"group": "build", | ||
"command": "Engine/Build/BatchFiles/Linux/Build.sh", | ||
"args": [ | ||
"Tests", | ||
"Development", | ||
"Linux", | ||
"${workspaceFolder:ShapeArt}/ShapeArt.uproject", | ||
"-waitmutex" | ||
] | ||
, | ||
"options": { | ||
"cwd": "${workspaceFolder:UE5}" | ||
}, | ||
"problemMatcher": "$msCompile", | ||
"type": "shell" | ||
}, | ||
{ | ||
"label": "Tests Clean", | ||
"group": "build", | ||
"command": "Engine/Build/BatchFiles/Linux/Build.sh", | ||
"args": [ | ||
"Tests", | ||
"Development", | ||
"Linux", | ||
"${workspaceFolder:ShapeArt}/ShapeArt.uproject", | ||
"-waitmutex", | ||
"-clean" | ||
], | ||
"problemMatcher": "$msCompile", | ||
"type": "shell", | ||
"options": { | ||
"cwd": "${workspaceFolder:UE5}" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Copy these contents to ShapeArt.code-workspace | ||
|
||
{ | ||
"folders": [ | ||
{ | ||
"name": "ShapeArt", | ||
"path": "." | ||
}, | ||
{ | ||
"name": "UE5", | ||
"path": "..\\..\\UE5" // Change this if needed | ||
} | ||
], | ||
"extensions": { | ||
"recommendations": [ | ||
"ms-vscode.cpptools", | ||
"ms-dotnettools.csharp", | ||
"matepek.vscode-catch2-test-adapter" | ||
] | ||
}, | ||
"launch": { | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run Tests", | ||
"request": "launch", | ||
"program": "${workspaceFolder:ShapeArt}\\Binaries\\Win64\\Tests.exe", | ||
"preLaunchTask": "Tests Build", | ||
"args": [], | ||
"type": "cppvsdbg", | ||
"cwd": "${workspaceFolder:UE5}" | ||
} | ||
] | ||
}, | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Tests Build", | ||
"group": "build", | ||
"command": "Engine\\Build\\BatchFiles\\Build.bat", | ||
"args": [ | ||
"Tests", | ||
"Development", | ||
"Win64", | ||
"${workspaceFolder:ShapeArt}\\ShapeArt.uproject", | ||
"-waitmutex" | ||
] | ||
, | ||
"options": { | ||
"cwd": "${workspaceFolder:UE5}" | ||
}, | ||
"problemMatcher": "$msCompile", | ||
"type": "shell" | ||
}, | ||
{ | ||
"label": "Tests Clean", | ||
"group": "build", | ||
"command": "Engine\\Build\\BatchFiles\\Clean.bat", | ||
"args": [ | ||
"Tests", | ||
"Development", | ||
"Win64", | ||
"${workspaceFolder:ShapeArt}\\ShapeArt.uproject", | ||
"-waitmutex" | ||
], | ||
"problemMatcher": "$msCompile", | ||
"type": "shell", | ||
"options": { | ||
"cwd": "${workspaceFolder:UE5}" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.