From 8af28ded35cbde3a371874ce8413516aebb044b1 Mon Sep 17 00:00:00 2001 From: Nuvole Date: Wed, 13 Nov 2024 17:10:42 +0800 Subject: [PATCH] fix: copyOut & some default value --- joj3_config_generator/models/result.py | 6 +- joj3_config_generator/models/task.py | 2 +- joj3_config_generator/processers/task.py | 5 + tests/convert/basic/task.json | 442 +++-------------------- tests/convert/basic/task.toml | 69 +--- 5 files changed, 82 insertions(+), 442 deletions(-) diff --git a/joj3_config_generator/models/result.py b/joj3_config_generator/models/result.py index a7095b4..7029657 100644 --- a/joj3_config_generator/models/result.py +++ b/joj3_config_generator/models/result.py @@ -10,9 +10,9 @@ class CmdFile(BaseModel): name: Optional[str] = None max: Optional[int] = 400 * 1024 * 1024 symlink: Optional[str] = None - stream_in: bool = Field(False, serialization_alias="streamIn") - stream_out: bool = Field(False, serialization_alias="streamOut") - pipe: bool = False + stream_in: bool = Field(True, serialization_alias="streamIn") + stream_out: bool = Field(True, serialization_alias="streamOut") + pipe: bool = True class Cmd(BaseModel): diff --git a/joj3_config_generator/models/task.py b/joj3_config_generator/models/task.py index 821cd10..969237e 100644 --- a/joj3_config_generator/models/task.py +++ b/joj3_config_generator/models/task.py @@ -25,7 +25,7 @@ class ParserKeyword(BaseModel): class Outputs(BaseModel): score: Optional[int] = 0 - ignorespaces: Optional[bool] = False + ignorespaces: Optional[bool] = True hide: Optional[bool] = False forcequit: Optional[bool] = True diff --git a/joj3_config_generator/processers/task.py b/joj3_config_generator/processers/task.py index 0d4e767..55357be 100644 --- a/joj3_config_generator/processers/task.py +++ b/joj3_config_generator/processers/task.py @@ -47,6 +47,10 @@ def get_executorWithConfig( and (task_stage.files is not None) else [] ) + copy_out_files = [ + "stdout", + "stderr" + ] executor_with_config = result.ExecutorWith( default=result.Cmd( args=( @@ -58,6 +62,7 @@ def get_executorWithConfig( file: result.CmdFile(src=f"/home/tt/.config/joj/{file}") for file in copy_in_files }, + copy_out=copy_out_files, copy_in_cached={file: file for file in cached}, copy_out_cached=file_export if file_export is not None else [], cpu_limit=( diff --git a/tests/convert/basic/task.json b/tests/convert/basic/task.json index ecb7fed..6c1535e 100644 --- a/tests/convert/basic/task.json +++ b/tests/convert/basic/task.json @@ -1,6 +1,6 @@ { - "name": "hw 6 ex3", - "logPath": "/home/tt/.cache/joj3/tests/homework/h6/e3.log", + "name": "hw 6 ex6", + "logPath": "/home/tt/.cache/joj3/tests/homework/h6/e6.log", "expireUnixTimestamp": 1731686399, "stage": { "sandboxExecServer": "172.17.0.1:5051", @@ -139,12 +139,12 @@ }, "copyInCached": {}, "copyInDir": ".", - "copyOut": [], + "copyOut": [ + "stdout", + "stderr" + ], "copyOutCached": [ - "h6/build/ex3", - "h6/build/asan", - "h6/build/ubsan", - "h6/build/msan", + "h6/build/ex6", "h6/build/compile_commands.json" ], "copyOutMax": 0, @@ -196,7 +196,7 @@ "with": { "default": { "args": [ - "./file-length", + "./tools/filelength", "400", "300", "*.c", @@ -244,14 +244,14 @@ } }, "copyInCached": { - "h6/build/ex3": "h6/build/ex3", - "h6/build/asan": "h6/build/asan", - "h6/build/ubsan": "h6/build/ubsan", - "h6/build/msan": "h6/build/msan", + "h6/build/ex6": "h6/build/ex6", "h6/build/compile_commands.json": "h6/build/compile_commands.json" }, "copyInDir": ".", - "copyOut": [], + "copyOut": [ + "stdout", + "stderr" + ], "copyOutCached": [], "copyOutMax": 0, "copyOutDir": "", @@ -318,7 +318,7 @@ "-quiet", "-load=/usr/local/lib/libcodequality.so", "-p", - "build" + "h6/build" ], "env": [ "PATH=/usr/bin:/bin:/usr/local/bin" @@ -359,24 +359,17 @@ "streamIn": false, "streamOut": false, "pipe": false - }, - "build/compile_commands.json": { - "src": "/home/tt/.config/joj/build/compile_commands.json", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false } }, "copyInCached": { - "h6/build/ex3": "h6/build/ex3", - "h6/build/asan": "h6/build/asan", - "h6/build/ubsan": "h6/build/ubsan", - "h6/build/msan": "h6/build/msan", + "h6/build/ex6": "h6/build/ex6", "h6/build/compile_commands.json": "h6/build/compile_commands.json" }, "copyInDir": ".", - "copyOut": [], + "copyOut": [ + "stdout", + "stderr" + ], "copyOutCached": [], "copyOutMax": 0, "copyOutDir": "", @@ -506,14 +499,14 @@ "cpuSetLimit": "", "copyIn": {}, "copyInCached": { - "h6/build/ex3": "h6/build/ex3", - "h6/build/asan": "h6/build/asan", - "h6/build/ubsan": "h6/build/ubsan", - "h6/build/msan": "h6/build/msan", + "h6/build/ex6": "h6/build/ex6", "h6/build/compile_commands.json": "h6/build/compile_commands.json" }, "copyInDir": ".", - "copyOut": [], + "copyOut": [ + "stdout", + "stderr" + ], "copyOutCached": [], "copyOutMax": 0, "copyOutDir": "", @@ -580,7 +573,7 @@ "args": [ "cpplint", "--linelength=120", - "--filter=-legal,-readability/casting,-whitespace,-runtime/printf,-runtime/threadsafe_fn,-readability/todo,-build/include_subdir,-build/header_guard", + "--filter=-legal,-readability/casting,-whitespace,-runtime/printf,-runtime/threadsafe_fn,-runtime/int,-readability/todo,-build/include_subdir,-build/header_guard,-build/include_what_you_use", "--recursive", "--exclude=build", "." @@ -619,14 +612,14 @@ "cpuSetLimit": "", "copyIn": {}, "copyInCached": { - "h6/build/ex3": "h6/build/ex3", - "h6/build/asan": "h6/build/asan", - "h6/build/ubsan": "h6/build/ubsan", - "h6/build/msan": "h6/build/msan", + "h6/build/ex6": "h6/build/ex6", "h6/build/compile_commands.json": "h6/build/compile_commands.json" }, "copyInDir": ".", - "copyOut": [], + "copyOut": [ + "stdout", + "stderr" + ], "copyOutCached": [], "copyOutMax": 0, "copyOutDir": "", @@ -691,14 +684,13 @@ ] }, { - "name": "[run] address sanitizer", + "name": "[joj] ex6", "executor": { "name": "sandbox", "with": { "default": { "args": [ - "./asan", - "-a" + "./h6/build/ex6" ], "env": [ "PATH=/usr/bin:/bin:/usr/local/bin" @@ -732,336 +724,16 @@ "procLimit": 50, "cpuRateLimit": 0, "cpuSetLimit": "", - "copyIn": { - "build/asan": { - "src": "/home/tt/.config/joj/build/asan", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - } - }, + "copyIn": {}, "copyInCached": { - "h6/build/ex3": "h6/build/ex3", - "h6/build/asan": "h6/build/asan", - "h6/build/ubsan": "h6/build/ubsan", - "h6/build/msan": "h6/build/msan", + "h6/build/ex6": "h6/build/ex6", "h6/build/compile_commands.json": "h6/build/compile_commands.json" }, "copyInDir": ".", - "copyOut": [], - "copyOutCached": [], - "copyOutMax": 0, - "copyOutDir": "", - "tty": false, - "strictMemoryLimit": false, - "dataSegmentLimit": false, - "addressSpaceLimit": false - }, - "cases": [] - } - }, - "parsers": [ - { - "name": "result-status", - "with": { - "score": 1, - "comment": "", - "forceQuitOnNotAccepted": false - } - }, - { - "name": "result-detail", - "with": { - "score": 0, - "comment": "", - "showFiles": [ + "copyOut": [ + "stdout", "stderr" ], - "showExitStatus": true, - "showRuntime": true, - "showMemory": true - } - } - ] - }, - { - "name": "[run] memory sanitizer", - "executor": { - "name": "sandbox", - "with": { - "default": { - "args": [ - "./msan", - "-a" - ], - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "content": "", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "stdout": { - "name": "stdout", - "max": 800000000000000, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "stderr": { - "name": "stderr", - "max": 800000000000000, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "cpuLimit": 1000000000000000, - "realCpuLimit": 0, - "clockLimit": 2000000000000000, - "memoryLimit": 838860800, - "stackLimit": 0, - "procLimit": 50, - "cpuRateLimit": 0, - "cpuSetLimit": "", - "copyIn": { - "build/msan": { - "src": "/home/tt/.config/joj/build/msan", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - } - }, - "copyInCached": { - "h6/build/ex3": "h6/build/ex3", - "h6/build/asan": "h6/build/asan", - "h6/build/ubsan": "h6/build/ubsan", - "h6/build/msan": "h6/build/msan", - "h6/build/compile_commands.json": "h6/build/compile_commands.json" - }, - "copyInDir": ".", - "copyOut": [], - "copyOutCached": [], - "copyOutMax": 0, - "copyOutDir": "", - "tty": false, - "strictMemoryLimit": false, - "dataSegmentLimit": false, - "addressSpaceLimit": false - }, - "cases": [] - } - }, - "parsers": [ - { - "name": "result-status", - "with": { - "score": 1, - "comment": "", - "forceQuitOnNotAccepted": false - } - }, - { - "name": "result-detail", - "with": { - "score": 0, - "comment": "", - "showFiles": [ - "stderr" - ], - "showExitStatus": true, - "showRuntime": true, - "showMemory": true - } - } - ] - }, - { - "name": "[run] undefined behavior sanitizer", - "executor": { - "name": "sandbox", - "with": { - "default": { - "args": [ - "./ubsan", - "-a" - ], - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "content": "", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "stdout": { - "name": "stdout", - "max": 800000000000000, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "stderr": { - "name": "stderr", - "max": 800000000000000, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "cpuLimit": 1000000000000000, - "realCpuLimit": 0, - "clockLimit": 2000000000000000, - "memoryLimit": 838860800, - "stackLimit": 0, - "procLimit": 50, - "cpuRateLimit": 0, - "cpuSetLimit": "", - "copyIn": { - "build/ubsan": { - "src": "/home/tt/.config/joj/build/ubsan", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - } - }, - "copyInCached": { - "h6/build/ex3": "h6/build/ex3", - "h6/build/asan": "h6/build/asan", - "h6/build/ubsan": "h6/build/ubsan", - "h6/build/msan": "h6/build/msan", - "h6/build/compile_commands.json": "h6/build/compile_commands.json" - }, - "copyInDir": ".", - "copyOut": [], - "copyOutCached": [], - "copyOutMax": 0, - "copyOutDir": "", - "tty": false, - "strictMemoryLimit": false, - "dataSegmentLimit": false, - "addressSpaceLimit": false - }, - "cases": [] - } - }, - "parsers": [ - { - "name": "result-status", - "with": { - "score": 1, - "comment": "", - "forceQuitOnNotAccepted": false - } - }, - { - "name": "result-detail", - "with": { - "score": 0, - "comment": "", - "showFiles": [ - "stderr" - ], - "showExitStatus": true, - "showRuntime": true, - "showMemory": true - } - } - ] - }, - { - "name": "[joj] ex3", - "executor": { - "name": "sandbox", - "with": { - "default": { - "args": [ - "./ex3" - ], - "env": [ - "PATH=/usr/bin:/bin:/usr/local/bin" - ], - "stdin": { - "content": "", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "stdout": { - "name": "stdout", - "max": 800000000000000, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "stderr": { - "name": "stderr", - "max": 800000000000000, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "cpuLimit": 1000000000000000, - "realCpuLimit": 0, - "clockLimit": 2000000000000000, - "memoryLimit": 838860800, - "stackLimit": 0, - "procLimit": 50, - "cpuRateLimit": 0, - "cpuSetLimit": "", - "copyIn": { - "h6/build/ex2": { - "src": "/home/tt/.config/joj/h6/build/ex2", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "h6/build/ex4": { - "src": "/home/tt/.config/joj/h6/build/ex4", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "h6/build/ex5": { - "src": "/home/tt/.config/joj/h6/build/ex5", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "h6/build/ex6": { - "src": "/home/tt/.config/joj/h6/build/ex6", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - }, - "h6/build/ex7": { - "src": "/home/tt/.config/joj/h6/build/ex7", - "max": 419430400, - "streamIn": false, - "streamOut": false, - "pipe": false - } - }, - "copyInCached": { - "h6/build/ex3": "h6/build/ex3", - "h6/build/asan": "h6/build/asan", - "h6/build/ubsan": "h6/build/ubsan", - "h6/build/msan": "h6/build/msan", - "h6/build/compile_commands.json": "h6/build/compile_commands.json" - }, - "copyInDir": ".", - "copyOut": [], "copyOutCached": [], "copyOutMax": 0, "copyOutDir": "", @@ -1076,7 +748,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case0.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case0.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1092,7 +764,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case1.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case1.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1108,7 +780,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case2.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case2.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1124,7 +796,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case3.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case3.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1140,7 +812,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case4.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case4.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1156,7 +828,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case5.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case5.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1172,7 +844,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case6.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case6.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1188,7 +860,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case7.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case7.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1204,7 +876,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case8.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case8.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1220,7 +892,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/.config/joj/tests/homework/h6/e3/case9.in", + "src": "/home/tt/.config/joj/tests/homework/h6/e6/case9.in", "max": 419430400, "streamIn": false, "streamOut": false, @@ -1245,7 +917,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case0.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case0.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1257,7 +929,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case1.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case1.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1269,7 +941,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case2.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case2.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1281,7 +953,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case3.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case3.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1293,7 +965,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case4.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case4.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1305,7 +977,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case5.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case5.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1317,7 +989,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case6.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case6.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1329,7 +1001,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case7.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case7.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1341,7 +1013,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case8.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case8.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1353,7 +1025,7 @@ { "score": 0, "fileName": "stdout", - "answerPath": "/home/tt/.config/joj/tests/homework/h6/e3/case9.out", + "answerPath": "/home/tt/.config/joj/tests/homework/h6/e6/case9.out", "forceQuitOnDiff": true, "alwaysHide": false, "compareSpace": true @@ -1389,7 +1061,7 @@ ] }, "teapot": { - "logPath": "/home/tt/.cache/joj3/tests/homework/h6/e3-joint-teapot-debug.log", + "logPath": "/home/tt/.cache/joj3/tests/homework/h6/e6-joint-teapot-debug.log", "scoreboardPath": "tests/homework-scoreboard.csv", "failedTablePath": "tests/homework-failed-table.md", "gradingRepoName": "engr151-joj", diff --git a/tests/convert/basic/task.toml b/tests/convert/basic/task.toml index 3ec2dba..e7a7c5a 100644 --- a/tests/convert/basic/task.toml +++ b/tests/convert/basic/task.toml @@ -1,18 +1,17 @@ # general task configuration -task.name = "hw 6 ex3" # task name - -task.type = "tests/homework/h6/e3" +task.name = "hw 6 ex6" # task name +task.type = "tests/homework/h6/e6" release.deadline = 2024-11-15 23:59:59+08:00 release.stages = [ "compile" ] [[stages]] name = "Compilation" -command = "./tools/compile" # eg. script running cmake commands -files.import = [ "tools/compile" ] -files.export = [ "h6/build/ex3", "h6/build/asan", "h6/build/ubsan", "h6/build/msan", "h6/build/compile_commands.json" ] +command = "./tools/compile" # eg. script running cmake commands +files.import = [ "tools/compile" ] +files.export = [ "h6/build/ex6", "h6/build/compile_commands.json" ] -# compile parsers +# compile parsers parsers = [ "result-detail", "dummy", "result-status" ] result-status.comment = "Congratulations! Your code compiled successfully." dummy.comment = "\n\n### Details\n" @@ -23,12 +22,12 @@ result-detail.mem = false [[stages]] name = "[cq] Filelength" -command = "./file-length 400 300 *.c *.h" +command = "./tools/filelength 400 300 *.c *.h" files.import = [ "tools/filelength" ] parsers = [ "keyword", "dummy", "result-detail" ] -keyword.keyword = [ "max", "recommended"] -keyword.weight = [ 20, 10 ] +keyword.keyword = [ "max", "recommended"] +keyword.weight = [ 20, 10 ] dummy.comment = "\n\n### Details\n" result-detail.exitstatus = true result-detail.stdout = true @@ -37,8 +36,8 @@ result-detail.mem = false [[stages]] name = "[cq] Clang-tidy" -command = "run-clang-tidy-18 -header-filter=.* -quiet -load=/usr/local/lib/libcodequality.so -p build" -files.import = [ "projects/p2/.clang-tidy", "build/compile_commands.json" ] +command = "run-clang-tidy-18 -header-filter=.* -quiet -load=/usr/local/lib/libcodequality.so -p h6/build" +files.import = [ "projects/p2/.clang-tidy", "h6/build/compile_commands.json" ] limit.stdout = 65 parsers = [ "clangtidy", "dummy", "result-detail" ] @@ -66,7 +65,7 @@ result-detail.mem = false [[stages]] name = "[cq] Cpplint" -command = "cpplint --linelength=120 --filter=-legal,-readability/casting,-whitespace,-runtime/printf,-runtime/threadsafe_fn,-readability/todo,-build/include_subdir,-build/header_guard --recursive --exclude=build ." +command = "cpplint --linelength=120 --filter=-legal,-readability/casting,-whitespace,-runtime/printf,-runtime/threadsafe_fn,-runtime/int,-readability/todo,-build/include_subdir,-build/header_guard,-build/include_what_you_use --recursive --exclude=build ." limit.stdout = 65 parsers = [ "cpplint", "dummy", "result-detail" ] @@ -78,47 +77,11 @@ result-detail.stderr = true result-detail.time = false result-detail.mem = false - [[stages]] -name = "[run] address sanitizer" -group = "run" -command="./asan -a" -files.import = [ "build/asan" ] - -parsers = [ "result-status", "result-detail" ] -result-status.score = 1 -result-status.forcequit = false -result-detail.exitstatus = true -result-detail.stderr = true - -[[stages]] -name = "[run] memory sanitizer" -group = "run" -command="./msan -a" -files.import = [ "build/msan" ] - -parsers = [ "result-status", "result-detail" ] -result-status.score = 1 -result-status.forcequit = false -result-detail.exitstatus = true -result-detail.stderr = true - -[[stages]] -name = "[run] undefined behavior sanitizer" -command="./ubsan -a" -files.import = [ "build/ubsan" ] - -parsers = [ "result-status", "result-detail" ] -result-status.score = 1 -result-status.forcequit = false -result-detail.exitstatus = true -result-detail.stderr = true - -[[stages]] -name = "[joj] ex3" +name = "[joj] ex6" group = "joj" -command="./ex3" -files.import = [ "h6/build/ex2", "h6/build/ex3", "h6/build/ex4", "h6/build/ex5", "h6/build/ex6", "h6/build/ex7" ] +command="./h6/build/ex6" +files.import = [ "h6/build/ex6" ] score = 10 parsers = [ "diff", "dummy", "result-detail" ] @@ -174,4 +137,4 @@ case8.limit.stdout = 8 case9.score = 10 case9.limit.cpu = 30 case9.limit.mem = 32 -case9.limit.stdout = 8 +case9.limit.stdout = 8 \ No newline at end of file