fix: remove compilation stage in testcases
This commit is contained in:
		
							parent
							
								
									6d2097b84b
								
							
						
					
					
						commit
						2b02909026
					
				|  | @ -153,7 +153,7 @@ | ||||||
|                             "cpuSetLimit": "", |                             "cpuSetLimit": "", | ||||||
|                             "copyIn": { |                             "copyIn": { | ||||||
|                                 "tools/compile": { |                                 "tools/compile": { | ||||||
|                                     "src": "/home/tt/./tools/tools/compile", |                                     "src": "/home/tt/.config/joj/tools/tools/compile", | ||||||
|                                     "max": 419430400 |                                     "max": 419430400 | ||||||
|                                 } |                                 } | ||||||
|                             }, |                             }, | ||||||
|  | @ -243,7 +243,7 @@ | ||||||
|                             "cpuSetLimit": "", |                             "cpuSetLimit": "", | ||||||
|                             "copyIn": { |                             "copyIn": { | ||||||
|                                 "tools/filelength": { |                                 "tools/filelength": { | ||||||
|                                     "src": "/home/tt/./tools/tools/filelength", |                                     "src": "/home/tt/.config/joj/tools/tools/filelength", | ||||||
|                                     "max": 419430400 |                                     "max": 419430400 | ||||||
|                                 } |                                 } | ||||||
|                             }, |                             }, | ||||||
|  | @ -352,7 +352,7 @@ | ||||||
|                             "cpuSetLimit": "", |                             "cpuSetLimit": "", | ||||||
|                             "copyIn": { |                             "copyIn": { | ||||||
|                                 "tests/homework/h7/.clang-tidy": { |                                 "tests/homework/h7/.clang-tidy": { | ||||||
|                                     "src": "/home/tt/./tools/tests/homework/h7/.clang-tidy", |                                     "src": "/home/tt/.config/joj/tools/tests/homework/h7/.clang-tidy", | ||||||
|                                     "max": 419430400 |                                     "max": 419430400 | ||||||
|                                 } |                                 } | ||||||
|                             }, |                             }, | ||||||
|  | @ -719,7 +719,7 @@ | ||||||
|                                     "PATH=/usr/bin:/bin:/usr/local/bin" |                                     "PATH=/usr/bin:/bin:/usr/local/bin" | ||||||
|                                 ], |                                 ], | ||||||
|                                 "stdin": { |                                 "stdin": { | ||||||
|                                     "src": "/home/tt/./homework/h7/e2/case0.in", |                                     "src": "/home/tt/.config/joj/homework/h7/e2/case0.in", | ||||||
|                                     "max": 419430400 |                                     "max": 419430400 | ||||||
|                                 }, |                                 }, | ||||||
|                                 "cpuLimit": 1000000000, |                                 "cpuLimit": 1000000000, | ||||||
|  | @ -736,7 +736,7 @@ | ||||||
|                                     "PATH=/usr/bin:/bin:/usr/local/bin" |                                     "PATH=/usr/bin:/bin:/usr/local/bin" | ||||||
|                                 ], |                                 ], | ||||||
|                                 "stdin": { |                                 "stdin": { | ||||||
|                                     "src": "/home/tt/./homework/h7/e2/case1.in", |                                     "src": "/home/tt/.config/joj/homework/h7/e2/case1.in", | ||||||
|                                     "max": 419430400 |                                     "max": 419430400 | ||||||
|                                 }, |                                 }, | ||||||
|                                 "cpuLimit": 1000000000, |                                 "cpuLimit": 1000000000, | ||||||
|  | @ -762,7 +762,7 @@ | ||||||
|                                         { |                                         { | ||||||
|                                             "score": 5, |                                             "score": 5, | ||||||
|                                             "fileName": "stdout", |                                             "fileName": "stdout", | ||||||
|                                             "answerPath": "/home/tt/./homework/h7/e2/case0.out", |                                             "answerPath": "/home/tt/.config/joj/homework/h7/e2/case0.out", | ||||||
|                                             "forceQuitOnDiff": false, |                                             "forceQuitOnDiff": false, | ||||||
|                                             "alwaysHide": false, |                                             "alwaysHide": false, | ||||||
|                                             "compareSpace": false |                                             "compareSpace": false | ||||||
|  | @ -774,7 +774,7 @@ | ||||||
|                                         { |                                         { | ||||||
|                                             "score": 5, |                                             "score": 5, | ||||||
|                                             "fileName": "stdout", |                                             "fileName": "stdout", | ||||||
|                                             "answerPath": "/home/tt/./homework/h7/e2/case1.out", |                                             "answerPath": "/home/tt/.config/joj/homework/h7/e2/case1.out", | ||||||
|                                             "forceQuitOnDiff": false, |                                             "forceQuitOnDiff": false, | ||||||
|                                             "alwaysHide": false, |                                             "alwaysHide": false, | ||||||
|                                             "compareSpace": false |                                             "compareSpace": false | ||||||
|  |  | ||||||
|  | @ -118,92 +118,6 @@ | ||||||
|                     } |                     } | ||||||
|                 ] |                 ] | ||||||
|             }, |             }, | ||||||
|             { |  | ||||||
|                 "name": "Compilation", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "sandbox", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "args": [ |  | ||||||
|                                 "./tools/compile" |  | ||||||
|                             ], |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 1000000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 2000000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": { |  | ||||||
|                                 "tools/compile": { |  | ||||||
|                                     "src": "/home/tt/./tools/tools/compile", |  | ||||||
|                                     "max": 419430400 |  | ||||||
|                                 } |  | ||||||
|                             }, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [ |  | ||||||
|                                 "h7/build/ex2", |  | ||||||
|                                 "h7/build/ex2-asan", |  | ||||||
|                                 "h7/build/ex2-ubsan", |  | ||||||
|                                 "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "result-detail", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "", |  | ||||||
|                             "showFiles": [ |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "showExitStatus": true, |  | ||||||
|                             "showRuntime": false, |  | ||||||
|                             "showMemory": false |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "result-status", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "Congratulations! Your code compiled successfully.", |  | ||||||
|                             "forceQuitOnNotAccepted": true |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[cq] Clang-tidy", |                 "name": "[cq] Clang-tidy", | ||||||
|                 "group": "cq", |                 "group": "cq", | ||||||
|  | @ -245,17 +159,15 @@ | ||||||
|                             "cpuSetLimit": "", |                             "cpuSetLimit": "", | ||||||
|                             "copyIn": { |                             "copyIn": { | ||||||
|                                 "tests/homework/h7/.clang-tidy": { |                                 "tests/homework/h7/.clang-tidy": { | ||||||
|                                     "src": "/home/tt/./tools/tests/homework/h7/.clang-tidy", |                                     "src": "/home/tt/.config/joj/tools/tests/homework/h7/.clang-tidy", | ||||||
|  |                                     "max": 419430400 | ||||||
|  |                                 }, | ||||||
|  |                                 "h7/build/compile_commands.json": { | ||||||
|  |                                     "src": "/home/tt/.config/joj/tools/h7/build/compile_commands.json", | ||||||
|                                     "max": 419430400 |                                     "max": 419430400 | ||||||
|                                 } |                                 } | ||||||
|                             }, |                             }, | ||||||
|                             "copyInCached": { |                             "copyInCached": {}, | ||||||
|                                 "h7/build/ex2": "h7/build/ex2", |  | ||||||
|                                 "h7/build/ex2-asan": "h7/build/ex2-asan", |  | ||||||
|                                 "h7/build/ex2-ubsan": "h7/build/ex2-ubsan", |  | ||||||
|                                 "h7/build/ex2-msan": "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json": "h7/build/compile_commands.json" |  | ||||||
|                             }, |  | ||||||
|                             "copyInDir": ".", |                             "copyInDir": ".", | ||||||
|                             "copyOut": [ |                             "copyOut": [ | ||||||
|                                 "stdout", |                                 "stdout", | ||||||
|  |  | ||||||
|  | @ -5,22 +5,6 @@ task.type = "homework/h7/e2" # remove this task type later | ||||||
| release.deadline = 2024-12-30 23:59:59+08:00 | release.deadline = 2024-12-30 23:59:59+08:00 | ||||||
| release.begin_time = 2024-12-29 23:59:59+08:00 | release.begin_time = 2024-12-29 23:59:59+08:00 | ||||||
| 
 | 
 | ||||||
| [[stages]] |  | ||||||
| name = "Compilation" |  | ||||||
| command = "./tools/compile" # eg. script running cmake commands |  | ||||||
| files.import = [ "tools/compile" ] |  | ||||||
| files.export = [ "h7/build/ex2", "h7/build/ex2-asan", "h7/build/ex2-ubsan", "h7/build/ex2-msan", "h7/build/compile_commands.json" ] |  | ||||||
| score = 1 |  | ||||||
| 
 |  | ||||||
| # compile parsers |  | ||||||
| parsers = [ "result-detail", "result-status" ] |  | ||||||
| result-status.comment = "Congratulations! Your code compiled successfully." |  | ||||||
| result-detail.exitstatus = true |  | ||||||
| result-detail.stderr = true |  | ||||||
| result-detail.time = false |  | ||||||
| result-detail.mem = false |  | ||||||
| result-status.forcequit = true |  | ||||||
| 
 |  | ||||||
| [[stages]] | [[stages]] | ||||||
| name = "[cq] Clang-tidy" | name = "[cq] Clang-tidy" | ||||||
| command = "run-clang-tidy-18 -header-filter=.* -quiet -load=/usr/local/lib/libcodequality.so -p h7/build h7/ex2.cpp" | command = "run-clang-tidy-18 -header-filter=.* -quiet -load=/usr/local/lib/libcodequality.so -p h7/build h7/ex2.cpp" | ||||||
|  |  | ||||||
|  | @ -118,92 +118,6 @@ | ||||||
|                     } |                     } | ||||||
|                 ] |                 ] | ||||||
|             }, |             }, | ||||||
|             { |  | ||||||
|                 "name": "Compilation", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "sandbox", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "args": [ |  | ||||||
|                                 "./tools/compile" |  | ||||||
|                             ], |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 1000000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 2000000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": { |  | ||||||
|                                 "tools/compile": { |  | ||||||
|                                     "src": "/home/tt/./tools/tools/compile", |  | ||||||
|                                     "max": 419430400 |  | ||||||
|                                 } |  | ||||||
|                             }, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [ |  | ||||||
|                                 "h7/build/ex2", |  | ||||||
|                                 "h7/build/ex2-asan", |  | ||||||
|                                 "h7/build/ex2-ubsan", |  | ||||||
|                                 "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "result-detail", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "", |  | ||||||
|                             "showFiles": [ |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "showExitStatus": true, |  | ||||||
|                             "showRuntime": false, |  | ||||||
|                             "showMemory": false |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "result-status", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "Congratulations! Your code compiled successfully.", |  | ||||||
|                             "forceQuitOnNotAccepted": true |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[cq] Cppcheck", |                 "name": "[cq] Cppcheck", | ||||||
|                 "group": "cq", |                 "group": "cq", | ||||||
|  | @ -244,13 +158,7 @@ | ||||||
|                             "cpuRateLimit": 0, |                             "cpuRateLimit": 0, | ||||||
|                             "cpuSetLimit": "", |                             "cpuSetLimit": "", | ||||||
|                             "copyIn": {}, |                             "copyIn": {}, | ||||||
|                             "copyInCached": { |                             "copyInCached": {}, | ||||||
|                                 "h7/build/ex2": "h7/build/ex2", |  | ||||||
|                                 "h7/build/ex2-asan": "h7/build/ex2-asan", |  | ||||||
|                                 "h7/build/ex2-ubsan": "h7/build/ex2-ubsan", |  | ||||||
|                                 "h7/build/ex2-msan": "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json": "h7/build/compile_commands.json" |  | ||||||
|                             }, |  | ||||||
|                             "copyInDir": ".", |                             "copyInDir": ".", | ||||||
|                             "copyOut": [ |                             "copyOut": [ | ||||||
|                                 "stdout", |                                 "stdout", | ||||||
|  |  | ||||||
|  | @ -5,22 +5,6 @@ task.type = "homework/h7/e2" # remove this task type later | ||||||
| release.deadline = 2024-12-30 23:59:59+08:00 | release.deadline = 2024-12-30 23:59:59+08:00 | ||||||
| release.begin_time = 2024-12-29 23:59:59+08:00 | release.begin_time = 2024-12-29 23:59:59+08:00 | ||||||
| 
 | 
 | ||||||
| [[stages]] |  | ||||||
| name = "Compilation" |  | ||||||
| command = "./tools/compile" # eg. script running cmake commands |  | ||||||
| files.import = [ "tools/compile" ] |  | ||||||
| files.export = [ "h7/build/ex2", "h7/build/ex2-asan", "h7/build/ex2-ubsan", "h7/build/ex2-msan", "h7/build/compile_commands.json" ] |  | ||||||
| score = 1 |  | ||||||
| 
 |  | ||||||
| # compile parsers |  | ||||||
| parsers = [ "result-detail", "result-status" ] |  | ||||||
| result-status.comment = "Congratulations! Your code compiled successfully." |  | ||||||
| result-detail.exitstatus = true |  | ||||||
| result-detail.stderr = true |  | ||||||
| result-detail.time = false |  | ||||||
| result-detail.mem = false |  | ||||||
| result-status.forcequit = true |  | ||||||
| 
 |  | ||||||
| [[stages]] | [[stages]] | ||||||
| name = "[cq] Cppcheck" | name = "[cq] Cppcheck" | ||||||
| command = "cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --suppress=missingIncludeSystem  --quiet h7/ex2.cpp" | command = "cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --suppress=missingIncludeSystem  --quiet h7/ex2.cpp" | ||||||
|  |  | ||||||
|  | @ -118,92 +118,6 @@ | ||||||
|                     } |                     } | ||||||
|                 ] |                 ] | ||||||
|             }, |             }, | ||||||
|             { |  | ||||||
|                 "name": "Compilation", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "sandbox", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "args": [ |  | ||||||
|                                 "./tools/compile" |  | ||||||
|                             ], |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 1000000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 2000000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": { |  | ||||||
|                                 "tools/compile": { |  | ||||||
|                                     "src": "/home/tt/./tools/tools/compile", |  | ||||||
|                                     "max": 419430400 |  | ||||||
|                                 } |  | ||||||
|                             }, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [ |  | ||||||
|                                 "h7/build/ex2", |  | ||||||
|                                 "h7/build/ex2-asan", |  | ||||||
|                                 "h7/build/ex2-ubsan", |  | ||||||
|                                 "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "result-detail", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "", |  | ||||||
|                             "showFiles": [ |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "showExitStatus": true, |  | ||||||
|                             "showRuntime": false, |  | ||||||
|                             "showMemory": false |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "result-status", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "Congratulations! Your code compiled successfully.", |  | ||||||
|                             "forceQuitOnNotAccepted": true |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[cq] Cpplint", |                 "name": "[cq] Cpplint", | ||||||
|                 "group": "cq", |                 "group": "cq", | ||||||
|  | @ -243,13 +157,7 @@ | ||||||
|                             "cpuRateLimit": 0, |                             "cpuRateLimit": 0, | ||||||
|                             "cpuSetLimit": "", |                             "cpuSetLimit": "", | ||||||
|                             "copyIn": {}, |                             "copyIn": {}, | ||||||
|                             "copyInCached": { |                             "copyInCached": {}, | ||||||
|                                 "h7/build/ex2": "h7/build/ex2", |  | ||||||
|                                 "h7/build/ex2-asan": "h7/build/ex2-asan", |  | ||||||
|                                 "h7/build/ex2-ubsan": "h7/build/ex2-ubsan", |  | ||||||
|                                 "h7/build/ex2-msan": "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json": "h7/build/compile_commands.json" |  | ||||||
|                             }, |  | ||||||
|                             "copyInDir": ".", |                             "copyInDir": ".", | ||||||
|                             "copyOut": [ |                             "copyOut": [ | ||||||
|                                 "stdout", |                                 "stdout", | ||||||
|  |  | ||||||
|  | @ -5,22 +5,6 @@ task.type = "homework/h7/e2" # remove this task type later | ||||||
| release.deadline = 2024-12-30 23:59:59+08:00 | release.deadline = 2024-12-30 23:59:59+08:00 | ||||||
| release.begin_time = 2024-12-29 23:59:59+08:00 | release.begin_time = 2024-12-29 23:59:59+08:00 | ||||||
| 
 | 
 | ||||||
| [[stages]] |  | ||||||
| name = "Compilation" |  | ||||||
| command = "./tools/compile" # eg. script running cmake commands |  | ||||||
| files.import = [ "tools/compile" ] |  | ||||||
| files.export = [ "h7/build/ex2", "h7/build/ex2-asan", "h7/build/ex2-ubsan", "h7/build/ex2-msan", "h7/build/compile_commands.json" ] |  | ||||||
| score = 1 |  | ||||||
| 
 |  | ||||||
| # compile parsers |  | ||||||
| parsers = [ "result-detail", "result-status" ] |  | ||||||
| result-status.comment = "Congratulations! Your code compiled successfully." |  | ||||||
| result-detail.exitstatus = true |  | ||||||
| result-detail.stderr = true |  | ||||||
| result-detail.time = false |  | ||||||
| result-detail.mem = false |  | ||||||
| result-status.forcequit = true |  | ||||||
| 
 |  | ||||||
| [[stages]] | [[stages]] | ||||||
| name = "[cq] Cpplint" | name = "[cq] Cpplint" | ||||||
| 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 h7/ex2.cpp" | 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 h7/ex2.cpp" | ||||||
|  |  | ||||||
|  | @ -118,92 +118,6 @@ | ||||||
|                     } |                     } | ||||||
|                 ] |                 ] | ||||||
|             }, |             }, | ||||||
|             { |  | ||||||
|                 "name": "Compilation", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "sandbox", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "args": [ |  | ||||||
|                                 "./tools/compile" |  | ||||||
|                             ], |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 1000000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 2000000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": { |  | ||||||
|                                 "tools/compile": { |  | ||||||
|                                     "src": "/home/tt/./tools/tools/compile", |  | ||||||
|                                     "max": 419430400 |  | ||||||
|                                 } |  | ||||||
|                             }, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [ |  | ||||||
|                                 "h7/build/ex2", |  | ||||||
|                                 "h7/build/ex2-asan", |  | ||||||
|                                 "h7/build/ex2-ubsan", |  | ||||||
|                                 "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "result-detail", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "", |  | ||||||
|                             "showFiles": [ |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "showExitStatus": true, |  | ||||||
|                             "showRuntime": false, |  | ||||||
|                             "showMemory": false |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "result-status", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "Congratulations! Your code compiled successfully.", |  | ||||||
|                             "forceQuitOnNotAccepted": true |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[joj] ex2-asan", |                 "name": "[joj] ex2-asan", | ||||||
|                 "group": "joj", |                 "group": "joj", | ||||||
|  | @ -234,14 +148,13 @@ | ||||||
|                             "procLimit": 50, |                             "procLimit": 50, | ||||||
|                             "cpuRateLimit": 0, |                             "cpuRateLimit": 0, | ||||||
|                             "cpuSetLimit": "", |                             "cpuSetLimit": "", | ||||||
|                             "copyIn": {}, |                             "copyIn": { | ||||||
|                             "copyInCached": { |                                 "h7/build/ex2-asan": { | ||||||
|                                 "h7/build/ex2": "h7/build/ex2", |                                     "src": "/home/tt/.config/joj/tools/h7/build/ex2-asan", | ||||||
|                                 "h7/build/ex2-asan": "h7/build/ex2-asan", |                                     "max": 419430400 | ||||||
|                                 "h7/build/ex2-ubsan": "h7/build/ex2-ubsan", |                                 } | ||||||
|                                 "h7/build/ex2-msan": "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json": "h7/build/compile_commands.json" |  | ||||||
|                             }, |                             }, | ||||||
|  |                             "copyInCached": {}, | ||||||
|                             "copyInDir": ".", |                             "copyInDir": ".", | ||||||
|                             "copyOut": [ |                             "copyOut": [ | ||||||
|                                 "stdout", |                                 "stdout", | ||||||
|  | @ -261,7 +174,7 @@ | ||||||
|                                     "PATH=/usr/bin:/bin:/usr/local/bin" |                                     "PATH=/usr/bin:/bin:/usr/local/bin" | ||||||
|                                 ], |                                 ], | ||||||
|                                 "stdin": { |                                 "stdin": { | ||||||
|                                     "src": "/home/tt/./homework/h7/e2/case0.in", |                                     "src": "/home/tt/.config/joj/homework/h7/e2/case0.in", | ||||||
|                                     "max": 419430400 |                                     "max": 419430400 | ||||||
|                                 }, |                                 }, | ||||||
|                                 "cpuLimit": 1000000000, |                                 "cpuLimit": 1000000000, | ||||||
|  | @ -278,7 +191,7 @@ | ||||||
|                                     "PATH=/usr/bin:/bin:/usr/local/bin" |                                     "PATH=/usr/bin:/bin:/usr/local/bin" | ||||||
|                                 ], |                                 ], | ||||||
|                                 "stdin": { |                                 "stdin": { | ||||||
|                                     "src": "/home/tt/./homework/h7/e2/case1.in", |                                     "src": "/home/tt/.config/joj/homework/h7/e2/case1.in", | ||||||
|                                     "max": 419430400 |                                     "max": 419430400 | ||||||
|                                 }, |                                 }, | ||||||
|                                 "cpuLimit": 1000000000, |                                 "cpuLimit": 1000000000, | ||||||
|  | @ -304,7 +217,7 @@ | ||||||
|                                         { |                                         { | ||||||
|                                             "score": 5, |                                             "score": 5, | ||||||
|                                             "fileName": "stdout", |                                             "fileName": "stdout", | ||||||
|                                             "answerPath": "/home/tt/./homework/h7/e2/case0.out", |                                             "answerPath": "/home/tt/.config/joj/homework/h7/e2/case0.out", | ||||||
|                                             "forceQuitOnDiff": false, |                                             "forceQuitOnDiff": false, | ||||||
|                                             "alwaysHide": false, |                                             "alwaysHide": false, | ||||||
|                                             "compareSpace": false |                                             "compareSpace": false | ||||||
|  | @ -316,7 +229,7 @@ | ||||||
|                                         { |                                         { | ||||||
|                                             "score": 5, |                                             "score": 5, | ||||||
|                                             "fileName": "stdout", |                                             "fileName": "stdout", | ||||||
|                                             "answerPath": "/home/tt/./homework/h7/e2/case1.out", |                                             "answerPath": "/home/tt/.config/joj/homework/h7/e2/case1.out", | ||||||
|                                             "forceQuitOnDiff": false, |                                             "forceQuitOnDiff": false, | ||||||
|                                             "alwaysHide": false, |                                             "alwaysHide": false, | ||||||
|                                             "compareSpace": false |                                             "compareSpace": false | ||||||
|  |  | ||||||
|  | @ -5,22 +5,6 @@ task.type = "homework/h7/e2" # remove this task type later | ||||||
| release.deadline = 2024-12-30 23:59:59+08:00 | release.deadline = 2024-12-30 23:59:59+08:00 | ||||||
| release.begin_time = 2024-12-29 23:59:59+08:00 | release.begin_time = 2024-12-29 23:59:59+08:00 | ||||||
| 
 | 
 | ||||||
| [[stages]] |  | ||||||
| name = "Compilation" |  | ||||||
| command = "./tools/compile" # eg. script running cmake commands |  | ||||||
| files.import = [ "tools/compile" ] |  | ||||||
| files.export = [ "h7/build/ex2", "h7/build/ex2-asan", "h7/build/ex2-ubsan", "h7/build/ex2-msan", "h7/build/compile_commands.json" ] |  | ||||||
| score = 1 |  | ||||||
| 
 |  | ||||||
| # compile parsers |  | ||||||
| parsers = [ "result-detail", "result-status" ] |  | ||||||
| result-status.comment = "Congratulations! Your code compiled successfully." |  | ||||||
| result-detail.exitstatus = true |  | ||||||
| result-detail.stderr = true |  | ||||||
| result-detail.time = false |  | ||||||
| result-detail.mem = false |  | ||||||
| result-status.forcequit = true |  | ||||||
| 
 |  | ||||||
| [[stages]] | [[stages]] | ||||||
| name = "[joj] ex2-asan" | name = "[joj] ex2-asan" | ||||||
| command="./h7/build/ex2-asan -a" | command="./h7/build/ex2-asan -a" | ||||||
|  |  | ||||||
|  | @ -118,92 +118,6 @@ | ||||||
|                     } |                     } | ||||||
|                 ] |                 ] | ||||||
|             }, |             }, | ||||||
|             { |  | ||||||
|                 "name": "Compilation", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "sandbox", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "args": [ |  | ||||||
|                                 "./tools/compile" |  | ||||||
|                             ], |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 800000000000000 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 1000000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 2000000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": { |  | ||||||
|                                 "tools/compile": { |  | ||||||
|                                     "src": "/home/tt/./tools/tools/compile", |  | ||||||
|                                     "max": 419430400 |  | ||||||
|                                 } |  | ||||||
|                             }, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [ |  | ||||||
|                                 "h7/build/ex2", |  | ||||||
|                                 "h7/build/ex2-asan", |  | ||||||
|                                 "h7/build/ex2-ubsan", |  | ||||||
|                                 "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "result-detail", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "", |  | ||||||
|                             "showFiles": [ |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "showExitStatus": true, |  | ||||||
|                             "showRuntime": false, |  | ||||||
|                             "showMemory": false |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "result-status", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0, |  | ||||||
|                             "comment": "Congratulations! Your code compiled successfully.", |  | ||||||
|                             "forceQuitOnNotAccepted": true |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[cq] Filelength", |                 "name": "[cq] Filelength", | ||||||
|                 "group": "cq", |                 "group": "cq", | ||||||
|  | @ -243,17 +157,11 @@ | ||||||
|                             "cpuSetLimit": "", |                             "cpuSetLimit": "", | ||||||
|                             "copyIn": { |                             "copyIn": { | ||||||
|                                 "tools/filelength": { |                                 "tools/filelength": { | ||||||
|                                     "src": "/home/tt/./tools/tools/filelength", |                                     "src": "/home/tt/.config/joj/tools/tools/filelength", | ||||||
|                                     "max": 419430400 |                                     "max": 419430400 | ||||||
|                                 } |                                 } | ||||||
|                             }, |                             }, | ||||||
|                             "copyInCached": { |                             "copyInCached": {}, | ||||||
|                                 "h7/build/ex2": "h7/build/ex2", |  | ||||||
|                                 "h7/build/ex2-asan": "h7/build/ex2-asan", |  | ||||||
|                                 "h7/build/ex2-ubsan": "h7/build/ex2-ubsan", |  | ||||||
|                                 "h7/build/ex2-msan": "h7/build/ex2-msan", |  | ||||||
|                                 "h7/build/compile_commands.json": "h7/build/compile_commands.json" |  | ||||||
|                             }, |  | ||||||
|                             "copyInDir": ".", |                             "copyInDir": ".", | ||||||
|                             "copyOut": [ |                             "copyOut": [ | ||||||
|                                 "stdout", |                                 "stdout", | ||||||
|  |  | ||||||
|  | @ -5,22 +5,6 @@ task.type = "homework/h7/e2" # remove this task type later | ||||||
| release.deadline = 2024-12-30 23:59:59+08:00 | release.deadline = 2024-12-30 23:59:59+08:00 | ||||||
| release.begin_time = 2024-12-29 23:59:59+08:00 | release.begin_time = 2024-12-29 23:59:59+08:00 | ||||||
| 
 | 
 | ||||||
| [[stages]] |  | ||||||
| name = "Compilation" |  | ||||||
| command = "./tools/compile" # eg. script running cmake commands |  | ||||||
| files.import = [ "tools/compile" ] |  | ||||||
| files.export = [ "h7/build/ex2", "h7/build/ex2-asan", "h7/build/ex2-ubsan", "h7/build/ex2-msan", "h7/build/compile_commands.json" ] |  | ||||||
| score = 1 |  | ||||||
| 
 |  | ||||||
| # compile parsers |  | ||||||
| parsers = [ "result-detail", "result-status" ] |  | ||||||
| result-status.comment = "Congratulations! Your code compiled successfully." |  | ||||||
| result-detail.exitstatus = true |  | ||||||
| result-detail.stderr = true |  | ||||||
| result-detail.time = false |  | ||||||
| result-detail.mem = false |  | ||||||
| result-status.forcequit = true |  | ||||||
| 
 |  | ||||||
| [[stages]] | [[stages]] | ||||||
| name = "[cq] Filelength" | name = "[cq] Filelength" | ||||||
| command = "./tools/filelength 400 300 *.cpp *.h" | command = "./tools/filelength 400 300 *.cpp *.h" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user