Update JOJ3 Configuration Schema
parent
322f1e8f28
commit
253f8d2332
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user