You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Intended for writing unit, integration, functional and all types of tests. #jira UEENGQA-49764 #rb Jerome.Delattre [CL 17666358 by chris constantinescu in ue5-main branch]
35 lines
635 B
C++
35 lines
635 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#if defined(PLATFORM_MAC)
|
|
#include "TestRunner.h"
|
|
#include <mach-o/dyld.h>
|
|
|
|
const char* GetCacheDirectory()
|
|
{
|
|
return "/private/var/tmp/basic_test_pds_cache";
|
|
}
|
|
|
|
const char* GetProcessExecutablePath()
|
|
{
|
|
static char Path[512] = { 0 };
|
|
uint32_t PathSize = sizeof(Path);
|
|
if (_NSGetExecutablePath(Path, &PathSize) == 0)
|
|
{
|
|
//Add extra slash
|
|
PathSize = strlen(Path);
|
|
if (PathSize < sizeof(Path) - 2)
|
|
{
|
|
Path[PathSize] = '/';
|
|
Path[PathSize + 1] = '\0';
|
|
return Path;
|
|
}
|
|
}
|
|
|
|
return NULL;
|
|
}
|
|
|
|
int main(int argc, const char* argv[])
|
|
{
|
|
return RunTests(argc, argv);
|
|
}
|
|
#endif |