From 253f8d23321f612b78323c01fee99882ed6b9287 Mon Sep 17 00:00:00 2001 From: manuel Date: Fri, 4 Oct 2024 11:44:19 +0800 Subject: [PATCH] Update JOJ3 Configuration Schema --- JOJ3-Configuration-Schema.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/JOJ3-Configuration-Schema.md b/JOJ3-Configuration-Schema.md index bd43439..7366592 100644 --- a/JOJ3-Configuration-Schema.md +++ b/JOJ3-Configuration-Schema.md @@ -71,8 +71,9 @@ stages = [ "compile", "code_quality", "joj" ] # list of stages, can feature a un [compile] 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]] command = "file-length" # command to run tests = [ "max", "recommend"] # keywords caught by corresponding JOJ plugin @@ -93,19 +94,19 @@ command = "cpplint --linelength=120 --filter=-legal,-readability/casting,-whites tests = [ "runtime", "readability", "build" ] weights = [ 10, 20, 15] -[joj] -score = 10 # default JOJ score for each test case -limit.cpu = 10000000000 # default cpu limit for each test case -limit.mem = 536870912 # default mem limit for each test case +[judge] +score = 10 # default OJ score for each test case +limit.cpu = 10 # default cpu limit (in sec) for each test case +limit.mem = 50 # set default mem limit (in MB) for all OJ test cases -[[test_cases]] -name = "case4" # name of a test case with non-default setup +[[test_case]] +filename = "case4.in" # filename of a test case with non-default setup score = 20 # non-default score -limit.cpu = 5000000000 -limit.mem = 53687091 +limit.cpu = 5s +limit.mem = 5M -[[test_cases]] -name = "case10" +[[test_case]] +filename = "case10.in" score = 30 -limit.mem = 53687091 # limit.cpu is kept as default +limit.mem = 100 # limit.cpu is kept as default ```