feat: use conf.json
This commit is contained in:
parent
4d0d2bfdf8
commit
13a3d05163
168
conf.json
Normal file
168
conf.json
Normal file
|
@ -0,0 +1,168 @@
|
||||||
|
{
|
||||||
|
"stages": [
|
||||||
|
{
|
||||||
|
"name": "compile",
|
||||||
|
"executor": {
|
||||||
|
"name": "sandbox",
|
||||||
|
"with": {
|
||||||
|
"default": {
|
||||||
|
"args": [
|
||||||
|
"g++",
|
||||||
|
"a.cc",
|
||||||
|
"-o",
|
||||||
|
"a"
|
||||||
|
],
|
||||||
|
"env": [
|
||||||
|
"PATH=/usr/bin:/bin"
|
||||||
|
],
|
||||||
|
"cpuLimit": 10000000000,
|
||||||
|
"memoryLimit": 104857600,
|
||||||
|
"procLimit": 50,
|
||||||
|
"copyInCwd": true,
|
||||||
|
"copyOut": [
|
||||||
|
"stdout",
|
||||||
|
"stderr"
|
||||||
|
],
|
||||||
|
"copyOutCached": [
|
||||||
|
"a"
|
||||||
|
],
|
||||||
|
"stdin": {
|
||||||
|
"content": ""
|
||||||
|
},
|
||||||
|
"stdout": {
|
||||||
|
"name": "stdout",
|
||||||
|
"max": 4096
|
||||||
|
},
|
||||||
|
"stderr": {
|
||||||
|
"name": "stderr",
|
||||||
|
"max": 4096
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parser": {
|
||||||
|
"name": "result-status",
|
||||||
|
"with": {
|
||||||
|
"score": 0,
|
||||||
|
"comment": "compile done"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "run",
|
||||||
|
"executor": {
|
||||||
|
"name": "sandbox",
|
||||||
|
"with": {
|
||||||
|
"default": {
|
||||||
|
"args": [
|
||||||
|
"./a"
|
||||||
|
],
|
||||||
|
"env": [
|
||||||
|
"PATH=/usr/bin:/bin"
|
||||||
|
],
|
||||||
|
"cpuLimit": 1000000000,
|
||||||
|
"memoryLimit": 104857600,
|
||||||
|
"procLimit": 50,
|
||||||
|
"copyOut": [
|
||||||
|
"stdout",
|
||||||
|
"stderr"
|
||||||
|
],
|
||||||
|
"stdout": {
|
||||||
|
"name": "stdout",
|
||||||
|
"max": 4096
|
||||||
|
},
|
||||||
|
"stderr": {
|
||||||
|
"name": "stderr",
|
||||||
|
"max": 4096
|
||||||
|
},
|
||||||
|
"copyInCached": {
|
||||||
|
"a": "a"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"cases": [
|
||||||
|
{
|
||||||
|
"stdin": {
|
||||||
|
"src": "./cases/1.in"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stdin": {
|
||||||
|
"src": "./cases/2.in"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stdin": {
|
||||||
|
"src": "./cases/3.in"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stdin": {
|
||||||
|
"src": "./cases/4.in"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stdin": {
|
||||||
|
"src": "./cases/5.in"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parser": {
|
||||||
|
"name": "diff",
|
||||||
|
"with": {
|
||||||
|
"cases": [
|
||||||
|
{
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"score": 100,
|
||||||
|
"fileName": "stdout",
|
||||||
|
"answerPath": "./cases/1.out"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"score": 100,
|
||||||
|
"fileName": "stdout",
|
||||||
|
"answerPath": "./cases/2.out"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"score": 100,
|
||||||
|
"fileName": "stdout",
|
||||||
|
"answerPath": "./cases/3.out",
|
||||||
|
"ignoreWhitespace": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"score": 100,
|
||||||
|
"fileName": "stdout",
|
||||||
|
"answerPath": "./cases/4.out",
|
||||||
|
"ignoreWhitespace": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"score": 100,
|
||||||
|
"fileName": "stdout",
|
||||||
|
"answerPath": "./cases/5.out",
|
||||||
|
"ignoreWhitespace": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
91
conf.toml
91
conf.toml
|
@ -1,91 +0,0 @@
|
||||||
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"
|
|
||||||
[[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.executor.with.cases]]
|
|
||||||
[stages.executor.with.cases.stdin]
|
|
||||||
src = "./cases/3.in"
|
|
||||||
[[stages.executor.with.cases]]
|
|
||||||
[stages.executor.with.cases.stdin]
|
|
||||||
src = "./cases/4.in"
|
|
||||||
[[stages.executor.with.cases]]
|
|
||||||
[stages.executor.with.cases.stdin]
|
|
||||||
src = "./cases/5.in"
|
|
||||||
[stages.parser]
|
|
||||||
name = "diff"
|
|
||||||
[[stages.parser.with.cases]]
|
|
||||||
[[stages.parser.with.cases.outputs]]
|
|
||||||
score = 100
|
|
||||||
fileName = "stdout"
|
|
||||||
answerPath = "./cases/1.out"
|
|
||||||
[[stages.parser.with.cases]]
|
|
||||||
[[stages.parser.with.cases.outputs]]
|
|
||||||
score = 100
|
|
||||||
fileName = "stdout"
|
|
||||||
answerPath = "./cases/2.out"
|
|
||||||
[[stages.parser.with.cases]]
|
|
||||||
[[stages.parser.with.cases.outputs]]
|
|
||||||
score = 100
|
|
||||||
fileName = "stdout"
|
|
||||||
answerPath = "./cases/3.out"
|
|
||||||
ignoreWhitespace=true
|
|
||||||
[[stages.parser.with.cases]]
|
|
||||||
[[stages.parser.with.cases.outputs]]
|
|
||||||
score = 100
|
|
||||||
fileName = "stdout"
|
|
||||||
answerPath = "./cases/4.out"
|
|
||||||
ignoreWhitespace=true
|
|
||||||
[[stages.parser.with.cases]]
|
|
||||||
[[stages.parser.with.cases.outputs]]
|
|
||||||
score = 100
|
|
||||||
fileName = "stdout"
|
|
||||||
answerPath = "./cases/5.out"
|
|
||||||
ignoreWhitespace=false
|
|
Loading…
Reference in New Issue
Block a user