Update JOJ3 Configuration Schema

manuel 2024-10-04 11:44:19 +08:00
parent 322f1e8f28
commit 253f8d2332

@ -71,7 +71,8 @@ stages = [ "compile", "code_quality", "joj" ] # list of stages, can feature a un
[compile] [compile]
command = "cmake" command = "cmake"
copyfiles= [ "main.c", "task.h" ] # files to include with repo code when compiling copyfiles = [ "main.c", "task.h" ] # files to include with repo code when compiling
# limit.cpu = 600 # allow 600s for complex/long compilation
[[code_quality]] [[code_quality]]
command = "file-length" # command to run command = "file-length" # command to run
@ -93,19 +94,19 @@ command = "cpplint --linelength=120 --filter=-legal,-readability/casting,-whites
tests = [ "runtime", "readability", "build" ] tests = [ "runtime", "readability", "build" ]
weights = [ 10, 20, 15] weights = [ 10, 20, 15]
[joj] [judge]
score = 10 # default JOJ score for each test case score = 10 # default OJ score for each test case
limit.cpu = 10000000000 # default cpu limit for each test case limit.cpu = 10 # default cpu limit (in sec) for each test case
limit.mem = 536870912 # default mem limit for each test case limit.mem = 50 # set default mem limit (in MB) for all OJ test cases
[[test_cases]] [[test_case]]
name = "case4" # name of a test case with non-default setup filename = "case4.in" # filename of a test case with non-default setup
score = 20 # non-default score score = 20 # non-default score
limit.cpu = 5000000000 limit.cpu = 5s
limit.mem = 53687091 limit.mem = 5M
[[test_cases]] [[test_case]]
name = "case10" filename = "case10.in"
score = 30 score = 30
limit.mem = 53687091 # limit.cpu is kept as default limit.mem = 100 # limit.cpu is kept as default
``` ```