From dc7be30db1fbfd83ecb78f214cff3f42732a1365 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Wed, 3 Apr 2024 18:27:48 -0400 Subject: [PATCH] feat: init --- conf.toml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ expected.json | 1 + 2 files changed, 62 insertions(+) create mode 100644 conf.toml create mode 100644 expected.json diff --git a/conf.toml b/conf.toml new file mode 100644 index 0000000..a52ff88 --- /dev/null +++ b/conf.toml @@ -0,0 +1,61 @@ +skipGitea = true +logLevel = 0 +[[stages]] +name = "compile" +[stages.executor] +name = "sandbox" +[stages.executor.with.default] +args = ["g++", "b.cc", "-o", "a"] +env = ["PATH=/usr/bin:/bin"] +cpuLimit = 10_000_000_000 +memoryLimit = 104_857_600 +procLimit = 50 +copyInCwd = true +copyOut = ["stdout", "stderr"] +copyOutCached = ["a"] +[stages.executor.with.default.stdin] +content = "" +[stages.executor.with.default.stdout] +name = "stdout" +max = 4_096 +[stages.executor.with.default.stderr] +name = "stderr" +max = 4_096 +[stages.parser] +name = "result-status" +[stages.parser.with] +score = 100 +comment = "compile done" +[[stages]] +name = "run" +[stages.executor] +name = "sandbox" +[stages.executor.with.default] +args = ["./a"] +env = ["PATH=/usr/bin:/bin"] +cpuLimit = 1_000_000_000 +memoryLimit = 104_857_600 +procLimit = 50 +copyOut = ["stdout", "stderr"] +[stages.executor.with.default.stdout] +name = "stdout" +max = 4_096 +[stages.executor.with.default.stderr] +name = "stderr" +max = 4_096 +[stages.executor.with.default.copyInCached] +a = "a" +[[stages.executor.with.cases]] +[stages.executor.with.cases.stdin] +src = "./cases/1.in" +[[stages.executor.with.cases]] +[stages.executor.with.cases.stdin] +src = "./cases/2.in" +[stages.parser] +name = "diff" +[[stages.parser.with.cases]] +score = 100 +stdoutPath = "./cases/1.out" +[[stages.parser.with.cases]] +score = 100 +stdoutPath = "./cases/2.out" diff --git a/expected.json b/expected.json new file mode 100644 index 0000000..b1358ee --- /dev/null +++ b/expected.json @@ -0,0 +1 @@ +[{"name":"compile","results":[{"score":0,"comment":"Unexpected executor status: Nonzero Exit Status."}]}]