179 lines
4.3 KiB
TOML
179 lines
4.3 KiB
TOML
skipGitea = true
|
|
[[stages]]
|
|
name = "compile"
|
|
[stages.executor]
|
|
name = "sandbox"
|
|
[stages.executor.with.default]
|
|
args = ["g++", "a.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 = 0
|
|
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"
|
|
|
|
|
|
# empty
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/empty.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/empty.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/empty.in"
|
|
|
|
|
|
# one-line
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/one-line.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/one-line.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/one-line.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/one-line.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/one-line.in"
|
|
|
|
|
|
# one-line
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/multi-line.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/multi-line.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/multi-line.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/multi-line.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/multi-line.in"
|
|
[[stages.executor.with.cases]]
|
|
[stages.executor.with.cases.stdin]
|
|
src = "./cases/multi-line.in"
|
|
[stages.parser]
|
|
name = "diff"
|
|
|
|
|
|
# empty
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/empty.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/one-line.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/multi-line-err1.out"
|
|
|
|
|
|
# one-line
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/empty.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/one-line.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/multi-line-err1.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/multi-line-err2.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/multi-line-err3.out"
|
|
|
|
|
|
# multi-line
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/empty.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/one-line.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/multi-line-correct.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/multi-line-err1.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/multi-line-err2.out"
|
|
[[stages.parser.with.cases]]
|
|
[[stages.parser.with.cases.outputs]]
|
|
score = 100
|
|
fileName = "stdout"
|
|
answerPath = "./cases/multi-line-err3.out"
|