feat: result-detail testcase
This commit is contained in:
parent
6bfefd4f7b
commit
a0c6bfd63c
|
@ -222,11 +222,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"copyInCached": {
|
"copyInCached": {
|
||||||
"h7/build/ex2": "h7/build/ex2",
|
|
||||||
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
|
||||||
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
|
||||||
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
||||||
"h7/build/compile_commands.json": "h7/build/compile_commands.json"
|
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
||||||
|
"h7/build/compile_commands.json": "h7/build/compile_commands.json",
|
||||||
|
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
||||||
|
"h7/build/ex2": "h7/build/ex2"
|
||||||
},
|
},
|
||||||
"copyInDir": ".",
|
"copyInDir": ".",
|
||||||
"copyOut": [
|
"copyOut": [
|
||||||
|
@ -322,11 +322,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"copyInCached": {
|
"copyInCached": {
|
||||||
"h7/build/ex2": "h7/build/ex2",
|
|
||||||
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
|
||||||
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
|
||||||
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
||||||
"h7/build/compile_commands.json": "h7/build/compile_commands.json"
|
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
||||||
|
"h7/build/compile_commands.json": "h7/build/compile_commands.json",
|
||||||
|
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
||||||
|
"h7/build/ex2": "h7/build/ex2"
|
||||||
},
|
},
|
||||||
"copyInDir": ".",
|
"copyInDir": ".",
|
||||||
"copyOut": [
|
"copyOut": [
|
||||||
|
@ -444,11 +444,11 @@
|
||||||
"cpuSetLimit": "",
|
"cpuSetLimit": "",
|
||||||
"copyIn": {},
|
"copyIn": {},
|
||||||
"copyInCached": {
|
"copyInCached": {
|
||||||
"h7/build/ex2": "h7/build/ex2",
|
|
||||||
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
|
||||||
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
|
||||||
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
||||||
"h7/build/compile_commands.json": "h7/build/compile_commands.json"
|
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
||||||
|
"h7/build/compile_commands.json": "h7/build/compile_commands.json",
|
||||||
|
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
||||||
|
"h7/build/ex2": "h7/build/ex2"
|
||||||
},
|
},
|
||||||
"copyInDir": ".",
|
"copyInDir": ".",
|
||||||
"copyOut": [
|
"copyOut": [
|
||||||
|
@ -587,11 +587,11 @@
|
||||||
"cpuSetLimit": "",
|
"cpuSetLimit": "",
|
||||||
"copyIn": {},
|
"copyIn": {},
|
||||||
"copyInCached": {
|
"copyInCached": {
|
||||||
"h7/build/ex2": "h7/build/ex2",
|
|
||||||
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
|
||||||
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
|
||||||
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
||||||
"h7/build/compile_commands.json": "h7/build/compile_commands.json"
|
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
||||||
|
"h7/build/compile_commands.json": "h7/build/compile_commands.json",
|
||||||
|
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
||||||
|
"h7/build/ex2": "h7/build/ex2"
|
||||||
},
|
},
|
||||||
"copyInDir": ".",
|
"copyInDir": ".",
|
||||||
"copyOut": [
|
"copyOut": [
|
||||||
|
@ -684,11 +684,11 @@
|
||||||
"cpuSetLimit": "",
|
"cpuSetLimit": "",
|
||||||
"copyIn": {},
|
"copyIn": {},
|
||||||
"copyInCached": {
|
"copyInCached": {
|
||||||
"h7/build/ex2": "h7/build/ex2",
|
|
||||||
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
|
||||||
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
|
||||||
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
"h7/build/ex2-msan": "h7/build/ex2-msan",
|
||||||
"h7/build/compile_commands.json": "h7/build/compile_commands.json"
|
"h7/build/ex2-asan": "h7/build/ex2-asan",
|
||||||
|
"h7/build/compile_commands.json": "h7/build/compile_commands.json",
|
||||||
|
"h7/build/ex2-ubsan": "h7/build/ex2-ubsan",
|
||||||
|
"h7/build/ex2": "h7/build/ex2"
|
||||||
},
|
},
|
||||||
"copyInDir": ".",
|
"copyInDir": ".",
|
||||||
"copyOut": [
|
"copyOut": [
|
||||||
|
|
2
tests/convert/result-detail/repo.toml
Normal file
2
tests/convert/result-detail/repo.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
force_skip_health_check_on_test = true
|
||||||
|
force_skip_teapot_on_test = true
|
91
tests/convert/result-detail/task.json
Normal file
91
tests/convert/result-detail/task.json
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
{
|
||||||
|
"name": "hw7 ex2",
|
||||||
|
"logPath": "/home/tt/.cache/joj3/homework/h7/e2.log",
|
||||||
|
"expireUnixTimestamp": 1735574399,
|
||||||
|
"effectiveUnixTimestamp": 1735487999,
|
||||||
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
|
"maxTotalScore": 100,
|
||||||
|
"stage": {
|
||||||
|
"sandboxExecServer": "172.17.0.1:5051",
|
||||||
|
"sandboxToken": "",
|
||||||
|
"outputPath": "/tmp/joj3_result.json",
|
||||||
|
"stages": [
|
||||||
|
{
|
||||||
|
"name": "[cq] Filelength",
|
||||||
|
"group": "cq",
|
||||||
|
"executor": {
|
||||||
|
"name": "sandbox",
|
||||||
|
"with": {
|
||||||
|
"default": {
|
||||||
|
"args": [
|
||||||
|
"./tools/filelength",
|
||||||
|
"400",
|
||||||
|
"300",
|
||||||
|
"*.cpp",
|
||||||
|
"*.h"
|
||||||
|
],
|
||||||
|
"env": [],
|
||||||
|
"stdin": {
|
||||||
|
"content": ""
|
||||||
|
},
|
||||||
|
"stdout": {
|
||||||
|
"name": "stdout",
|
||||||
|
"max": 33554432,
|
||||||
|
"pipe": true
|
||||||
|
},
|
||||||
|
"stderr": {
|
||||||
|
"name": "stderr",
|
||||||
|
"max": 33554432,
|
||||||
|
"pipe": true
|
||||||
|
},
|
||||||
|
"cpuLimit": 1000000000,
|
||||||
|
"clockLimit": 2000000000,
|
||||||
|
"memoryLimit": 134217728,
|
||||||
|
"stackLimit": 0,
|
||||||
|
"procLimit": 50,
|
||||||
|
"cpuRateLimit": 0,
|
||||||
|
"cpuSetLimit": "",
|
||||||
|
"copyIn": {
|
||||||
|
"tools/filelength": {
|
||||||
|
"src": "/home/tt/.config/joj/tools/filelength"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"copyInCached": {},
|
||||||
|
"copyInDir": ".",
|
||||||
|
"copyOut": [
|
||||||
|
"stdout",
|
||||||
|
"stderr"
|
||||||
|
],
|
||||||
|
"copyOutCached": [],
|
||||||
|
"copyOutMax": 0,
|
||||||
|
"copyOutDir": "",
|
||||||
|
"tty": false,
|
||||||
|
"strictMemoryLimit": false,
|
||||||
|
"dataSegmentLimit": false,
|
||||||
|
"addressSpaceLimit": false
|
||||||
|
},
|
||||||
|
"cases": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parsers": [
|
||||||
|
{
|
||||||
|
"name": "result-detail",
|
||||||
|
"with": {
|
||||||
|
"score": 0,
|
||||||
|
"comment": "",
|
||||||
|
"showFiles": [
|
||||||
|
"stdout",
|
||||||
|
"stderr"
|
||||||
|
],
|
||||||
|
"showExitStatus": true,
|
||||||
|
"showRuntime": false,
|
||||||
|
"showMemory": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"preStages": [],
|
||||||
|
"postStages": []
|
||||||
|
}
|
||||||
|
}
|
18
tests/convert/result-detail/task.toml
Normal file
18
tests/convert/result-detail/task.toml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# general task configuration
|
||||||
|
task.name = "hw7 ex2" # task name
|
||||||
|
task.type = "homework/h7/e2" # remove this task type later
|
||||||
|
|
||||||
|
release.end_time = 2024-12-30 23:59:59+08:00
|
||||||
|
release.begin_time = 2024-12-29 23:59:59+08:00
|
||||||
|
|
||||||
|
[[stages]]
|
||||||
|
name = "[cq] Filelength"
|
||||||
|
command = "./tools/filelength 400 300 *.cpp *.h"
|
||||||
|
files.import = [ "tools/filelength" ]
|
||||||
|
|
||||||
|
parsers = [ "result-detail" ]
|
||||||
|
result-detail.exitstatus = true
|
||||||
|
result-detail.stdout = true
|
||||||
|
result-detail.stderr = true
|
||||||
|
result-detail.time = false
|
||||||
|
result-detail.mem = false
|
|
@ -23,3 +23,7 @@ def test_diff() -> None:
|
||||||
|
|
||||||
def test_keyword() -> None:
|
def test_keyword() -> None:
|
||||||
load_case("keyword")
|
load_case("keyword")
|
||||||
|
|
||||||
|
|
||||||
|
def test_result_detail() -> None:
|
||||||
|
load_case("result-detail")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user