add compile & test worker

This commit is contained in:
prixod
2025-10-24 23:46:51 +04:00
parent 3d854c3470
commit 6cead15a5f
19 changed files with 849 additions and 13 deletions

View File

@@ -0,0 +1,10 @@
namespace LiquidCode.Tester.Common.Models;
public class ProblemPackage
{
public string WorkingDirectory { get; set; } = string.Empty;
public List<TestCase> TestCases { get; set; } = new();
public string? CheckerPath { get; set; }
public int DefaultTimeLimit { get; set; } = 2000; // milliseconds
public int DefaultMemoryLimit { get; set; } = 256; // MB
}

View File

@@ -0,0 +1,10 @@
namespace LiquidCode.Tester.Common.Models;
public class TestCase
{
public int Number { get; set; }
public string InputFilePath { get; set; } = string.Empty;
public string OutputFilePath { get; set; } = string.Empty;
public int TimeLimit { get; set; } // milliseconds
public int MemoryLimit { get; set; } // MB
}