RealtimeStyleTransferRuntime/Build/Scripts/Automation/LyraTest.TestConfig.cs

33 lines
866 B
C#
Raw Permalink Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc.All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EpicGame;
using Gauntlet;
namespace LyraTest
{
public class LyraTestConfig : EpicGameTestConfig
{
[AutoParam]
public int TargetNumOfCycledMatches = 2;
public override void ApplyToConfig(UnrealAppConfig AppConfig, UnrealSessionRole ConfigRole, IEnumerable<UnrealSessionRole> OtherRoles)
{
base.ApplyToConfig(AppConfig, ConfigRole, OtherRoles);
if (AppConfig.ProcessType.IsClient())
{
AppConfig.CommandLine += string.Format(" -TargetNumOfCycledMatches={0}", TargetNumOfCycledMatches);
}
const float InitTime = 120.0f;
const float MatchTime = 300.0f;
MaxDuration = InitTime + (MatchTime * TargetNumOfCycledMatches);
}
}
}