diff --git a/tests/convert/basic/task.json b/tests/convert/basic/task.json index e7ebd6e..85c915b 100644 --- a/tests/convert/basic/task.json +++ b/tests/convert/basic/task.json @@ -153,7 +153,7 @@ "cpuSetLimit": "", "copyIn": { "tools/compile": { - "src": "/home/tt/./tools/tools/compile", + "src": "/home/tt/.config/joj/tools/tools/compile", "max": 419430400 } }, @@ -243,7 +243,7 @@ "cpuSetLimit": "", "copyIn": { "tools/filelength": { - "src": "/home/tt/./tools/tools/filelength", + "src": "/home/tt/.config/joj/tools/tools/filelength", "max": 419430400 } }, @@ -352,7 +352,7 @@ "cpuSetLimit": "", "copyIn": { "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 } }, @@ -719,7 +719,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/./homework/h7/e2/case0.in", + "src": "/home/tt/.config/joj/homework/h7/e2/case0.in", "max": 419430400 }, "cpuLimit": 1000000000, @@ -736,7 +736,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/./homework/h7/e2/case1.in", + "src": "/home/tt/.config/joj/homework/h7/e2/case1.in", "max": 419430400 }, "cpuLimit": 1000000000, @@ -762,7 +762,7 @@ { "score": 5, "fileName": "stdout", - "answerPath": "/home/tt/./homework/h7/e2/case0.out", + "answerPath": "/home/tt/.config/joj/homework/h7/e2/case0.out", "forceQuitOnDiff": false, "alwaysHide": false, "compareSpace": false @@ -774,7 +774,7 @@ { "score": 5, "fileName": "stdout", - "answerPath": "/home/tt/./homework/h7/e2/case1.out", + "answerPath": "/home/tt/.config/joj/homework/h7/e2/case1.out", "forceQuitOnDiff": false, "alwaysHide": false, "compareSpace": false diff --git a/tests/convert/clang-tidy/task.json b/tests/convert/clang-tidy/task.json index 89c314b..386df1d 100644 --- a/tests/convert/clang-tidy/task.json +++ b/tests/convert/clang-tidy/task.json @@ -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", "group": "cq", @@ -245,17 +159,15 @@ "cpuSetLimit": "", "copyIn": { "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 } }, - "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" - }, + "copyInCached": {}, "copyInDir": ".", "copyOut": [ "stdout", diff --git a/tests/convert/clang-tidy/task.toml b/tests/convert/clang-tidy/task.toml index 4deddd2..9371465 100644 --- a/tests/convert/clang-tidy/task.toml +++ b/tests/convert/clang-tidy/task.toml @@ -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.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]] name = "[cq] Clang-tidy" command = "run-clang-tidy-18 -header-filter=.* -quiet -load=/usr/local/lib/libcodequality.so -p h7/build h7/ex2.cpp" diff --git a/tests/convert/cppcheck/task.json b/tests/convert/cppcheck/task.json index a51ca57..17aa510 100644 --- a/tests/convert/cppcheck/task.json +++ b/tests/convert/cppcheck/task.json @@ -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", "group": "cq", @@ -244,13 +158,7 @@ "cpuRateLimit": 0, "cpuSetLimit": "", "copyIn": {}, - "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" - }, + "copyInCached": {}, "copyInDir": ".", "copyOut": [ "stdout", diff --git a/tests/convert/cppcheck/task.toml b/tests/convert/cppcheck/task.toml index cebfa7a..9113d79 100644 --- a/tests/convert/cppcheck/task.toml +++ b/tests/convert/cppcheck/task.toml @@ -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.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]] 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" diff --git a/tests/convert/cpplint/task.json b/tests/convert/cpplint/task.json index d892977..b15c928 100644 --- a/tests/convert/cpplint/task.json +++ b/tests/convert/cpplint/task.json @@ -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", "group": "cq", @@ -243,13 +157,7 @@ "cpuRateLimit": 0, "cpuSetLimit": "", "copyIn": {}, - "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" - }, + "copyInCached": {}, "copyInDir": ".", "copyOut": [ "stdout", diff --git a/tests/convert/cpplint/task.toml b/tests/convert/cpplint/task.toml index 7bcac0e..0f0cca5 100644 --- a/tests/convert/cpplint/task.toml +++ b/tests/convert/cpplint/task.toml @@ -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.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]] 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" diff --git a/tests/convert/diff/task.json b/tests/convert/diff/task.json index ed894dc..db59026 100644 --- a/tests/convert/diff/task.json +++ b/tests/convert/diff/task.json @@ -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", "group": "joj", @@ -234,14 +148,13 @@ "procLimit": 50, "cpuRateLimit": 0, "cpuSetLimit": "", - "copyIn": {}, - "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" + "copyIn": { + "h7/build/ex2-asan": { + "src": "/home/tt/.config/joj/tools/h7/build/ex2-asan", + "max": 419430400 + } }, + "copyInCached": {}, "copyInDir": ".", "copyOut": [ "stdout", @@ -261,7 +174,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/./homework/h7/e2/case0.in", + "src": "/home/tt/.config/joj/homework/h7/e2/case0.in", "max": 419430400 }, "cpuLimit": 1000000000, @@ -278,7 +191,7 @@ "PATH=/usr/bin:/bin:/usr/local/bin" ], "stdin": { - "src": "/home/tt/./homework/h7/e2/case1.in", + "src": "/home/tt/.config/joj/homework/h7/e2/case1.in", "max": 419430400 }, "cpuLimit": 1000000000, @@ -304,7 +217,7 @@ { "score": 5, "fileName": "stdout", - "answerPath": "/home/tt/./homework/h7/e2/case0.out", + "answerPath": "/home/tt/.config/joj/homework/h7/e2/case0.out", "forceQuitOnDiff": false, "alwaysHide": false, "compareSpace": false @@ -316,7 +229,7 @@ { "score": 5, "fileName": "stdout", - "answerPath": "/home/tt/./homework/h7/e2/case1.out", + "answerPath": "/home/tt/.config/joj/homework/h7/e2/case1.out", "forceQuitOnDiff": false, "alwaysHide": false, "compareSpace": false diff --git a/tests/convert/diff/task.toml b/tests/convert/diff/task.toml index e6e9463..1346df4 100644 --- a/tests/convert/diff/task.toml +++ b/tests/convert/diff/task.toml @@ -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.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]] name = "[joj] ex2-asan" command="./h7/build/ex2-asan -a" diff --git a/tests/convert/keyword/task.json b/tests/convert/keyword/task.json index bbd7d32..a4e3e2c 100644 --- a/tests/convert/keyword/task.json +++ b/tests/convert/keyword/task.json @@ -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", "group": "cq", @@ -243,17 +157,11 @@ "cpuSetLimit": "", "copyIn": { "tools/filelength": { - "src": "/home/tt/./tools/tools/filelength", + "src": "/home/tt/.config/joj/tools/tools/filelength", "max": 419430400 } }, - "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" - }, + "copyInCached": {}, "copyInDir": ".", "copyOut": [ "stdout", diff --git a/tests/convert/keyword/task.toml b/tests/convert/keyword/task.toml index cdcf889..d0e810a 100644 --- a/tests/convert/keyword/task.toml +++ b/tests/convert/keyword/task.toml @@ -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.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]] name = "[cq] Filelength" command = "./tools/filelength 400 300 *.cpp *.h"