From 69b9af03a00d79fc174c0911e4eee9657966c18d Mon Sep 17 00:00:00 2001 From: Nuvole Date: Wed, 13 Nov 2024 17:36:00 +0800 Subject: [PATCH] fix: command in cases --- tests/convert/basic/task.json | 80 +++++++++++++++-------------------- tests/convert/basic/task.toml | 1 + 2 files changed, 35 insertions(+), 46 deletions(-) diff --git a/tests/convert/basic/task.json b/tests/convert/basic/task.json index b484b7d..9fba48c 100644 --- a/tests/convert/basic/task.json +++ b/tests/convert/basic/task.json @@ -145,9 +145,9 @@ ], "copyOutCached": [ "h6/build/ex3", - "build/asan", - "build/ubsan", - "build/msan", + "h6/build/asan", + "h6/build/ubsan", + "h6/build/msan", "h6/build/compile_commands.json" ], "copyOutMax": 0, @@ -248,9 +248,9 @@ }, "copyInCached": { "h6/build/ex3": "h6/build/ex3", - "build/asan": "build/asan", - "build/ubsan": "build/ubsan", - "build/msan": "build/msan", + "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": ".", @@ -369,9 +369,9 @@ }, "copyInCached": { "h6/build/ex3": "h6/build/ex3", - "build/asan": "build/asan", - "build/ubsan": "build/ubsan", - "build/msan": "build/msan", + "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": ".", @@ -509,9 +509,9 @@ "copyIn": {}, "copyInCached": { "h6/build/ex3": "h6/build/ex3", - "build/asan": "build/asan", - "build/ubsan": "build/ubsan", - "build/msan": "build/msan", + "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": ".", @@ -625,9 +625,9 @@ "copyIn": {}, "copyInCached": { "h6/build/ex3": "h6/build/ex3", - "build/asan": "build/asan", - "build/ubsan": "build/ubsan", - "build/msan": "build/msan", + "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": ".", @@ -705,7 +705,7 @@ "with": { "default": { "args": [ - "./build/asan", + "./h6/build/asan", "-a" ], "env": [ @@ -743,9 +743,9 @@ "copyIn": {}, "copyInCached": { "h6/build/ex3": "h6/build/ex3", - "build/asan": "build/asan", - "build/ubsan": "build/ubsan", - "build/msan": "build/msan", + "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": ".", @@ -830,20 +830,12 @@ "procLimit": 50, "cpuRateLimit": 0, "cpuSetLimit": "", - "copyIn": { - "h6/build/msan": { - "src": "/home/tt/.config/joj/h6/build/msan", - "max": 419430400, - "streamIn": true, - "streamOut": true, - "pipe": true - } - }, + "copyIn": {}, "copyInCached": { "h6/build/ex3": "h6/build/ex3", - "build/asan": "build/asan", - "build/ubsan": "build/ubsan", - "build/msan": "build/msan", + "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": ".", @@ -928,20 +920,12 @@ "procLimit": 50, "cpuRateLimit": 0, "cpuSetLimit": "", - "copyIn": { - "h6/build/ubsan": { - "src": "/home/tt/.config/joj/h6/build/ubsan", - "max": 419430400, - "streamIn": true, - "streamOut": true, - "pipe": true - } - }, + "copyIn": {}, "copyInCached": { "h6/build/ex3": "h6/build/ex3", - "build/asan": "build/asan", - "build/ubsan": "build/ubsan", - "build/msan": "build/msan", + "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": ".", @@ -1028,9 +1012,9 @@ "copyIn": {}, "copyInCached": { "h6/build/ex3": "h6/build/ex3", - "build/asan": "build/asan", - "build/ubsan": "build/ubsan", - "build/msan": "build/msan", + "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": ".", @@ -1048,6 +1032,10 @@ }, "cases": [ { + "args": [ + "Manuel", + "Charlemagne" + ], "env": [ "PATH=/usr/bin:/bin:/usr/local/bin" ], diff --git a/tests/convert/basic/task.toml b/tests/convert/basic/task.toml index e9fc796..5fa7216 100644 --- a/tests/convert/basic/task.toml +++ b/tests/convert/basic/task.toml @@ -128,6 +128,7 @@ case0.score = 10 case0.limit.cpu = 30 case0.limit.mem = 32 case0.limit.stdout = 8 +case0.command = "Manuel Charlemagne" case1.score = 10 case1.limit.cpu = 30