From 4bca6f0e4b5e263532b8410afecca615e90524e9 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Wed, 3 Apr 2024 18:25:57 -0400 Subject: [PATCH] feat: init --- conf.toml | 28 ++++++++++++++++++++++++++++ expected.json | 1 + 2 files changed, 29 insertions(+) create mode 100644 conf.toml create mode 100644 expected.json diff --git a/conf.toml b/conf.toml new file mode 100644 index 0000000..7fef08c --- /dev/null +++ b/conf.toml @@ -0,0 +1,28 @@ +skipGitea = true +[[stages]] +name = "dummy" +[stages.executor] +name = "sandbox" +[stages.executor.with.default] +args = ["./dummy", "--score", "100"] +env = ["PATH=/usr/bin:/bin"] +cpuLimit = 10_000_000_000 +memoryLimit = 104_857_600 +procLimit = 50 +copyInCwd = true +[stages.executor.with.default.copyIn.dummy] +src = "./../../../build/dummy" +copyOut = ["stdout", "stderr"] +[stages.executor.with.default.stdin] +content = "" +[stages.executor.with.default.stdout] +name = "stdout" +max = 4_096 +[stages.executor.with.default.stderr] +name = "stderr" +max = 4_096 +[stages.parser] +name = "dummy" +[stages.parser.with] +score = 10 +comment = " + comment from toml conf" diff --git a/expected.json b/expected.json new file mode 100644 index 0000000..2739e94 --- /dev/null +++ b/expected.json @@ -0,0 +1 @@ +[{"name":"dummy","results":[{"score":110,"comment":"dummy comment + comment from toml conf"}]}]