feat: init
This commit is contained in:
commit
dc7be30db1
61
conf.toml
Normal file
61
conf.toml
Normal file
|
@ -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"
|
1
expected.json
Normal file
1
expected.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"name":"compile","results":[{"score":0,"comment":"Unexpected executor status: Nonzero Exit Status."}]}]
|
Loading…
Reference in New Issue
Block a user