From 9c8ba188e60280a3c6416887dc42a09da8b17db5 Mon Sep 17 00:00:00 2001 From: Sunrisepeak Date: Thu, 19 Nov 2026 15:35:01 +0900 Subject: [PATCH] mtest 0.10.0: a timeout records the program's processes, asks it to end, and ends what still runs after its grace --- CHANGELOG.md | 3 +++ pkgs/m/mcpplibs.mtest.capi.lua | 21 +++++++++++++++++++++ pkgs/m/mcpplibs.mtest.gtest.lua | 21 +++++++++++++++++++++ pkgs/m/mcpplibs.mtest.manifest.lua | 21 +++++++++++++++++++++ pkgs/m/mtest.lua | 24 ++++++++++++++++++++++++ 5 files changed, 90 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 276eef53..e73a0177 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ ### Added +- **mtest 0.10.0(mcpplibs.mtest、.manifest、.gtest、.capi)。** 程序超时时先记录它的进程(Linux 上为程序、它启动的进程与其进程组, + 含状态、等待的内核函数、处理器时间与结束请求对它的作用;其他系统为程序本身),再请求它结束,在宽限(`grace`,缺省 2 s)后 + 记录仍在运行的进程并结束其单元;`timeout_record = false` 不记录(mcpp-community/mtest#25)。 - **openkal 0.26 一族,一次变更:openkal 0.26.0、openkal-kit 0.3.2、openkal-linux 0.27.0、openkal-macos 0.24.0、 openkal-windows 0.23.0、openkal-freebsd 0.2.0、openkal-uefi 0.12.0、openkal-dos 与 openkal-dos-tools 0.2.0、 openkal-svr4 0.2.0、openkal-posix 0.2.0、openkal-emscripten 0.15.0、openkal-opensbi 0.10.0。** 规范条款 7.6: diff --git a/pkgs/m/mcpplibs.mtest.capi.lua b/pkgs/m/mcpplibs.mtest.capi.lua index 956d46bf..b4fd1a0a 100644 --- a/pkgs/m/mcpplibs.mtest.capi.lua +++ b/pkgs/m/mcpplibs.mtest.capi.lua @@ -21,6 +21,13 @@ package = { xpm = { linux = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", @@ -149,6 +156,13 @@ package = { }, }, macosx = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", @@ -277,6 +291,13 @@ package = { }, }, windows = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", diff --git a/pkgs/m/mcpplibs.mtest.gtest.lua b/pkgs/m/mcpplibs.mtest.gtest.lua index 47ec65de..062316c0 100644 --- a/pkgs/m/mcpplibs.mtest.gtest.lua +++ b/pkgs/m/mcpplibs.mtest.gtest.lua @@ -20,6 +20,13 @@ package = { xpm = { linux = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", @@ -148,6 +155,13 @@ package = { }, }, macosx = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", @@ -276,6 +290,13 @@ package = { }, }, windows = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", diff --git a/pkgs/m/mcpplibs.mtest.manifest.lua b/pkgs/m/mcpplibs.mtest.manifest.lua index de2006c5..6cce7f72 100644 --- a/pkgs/m/mcpplibs.mtest.manifest.lua +++ b/pkgs/m/mcpplibs.mtest.manifest.lua @@ -22,6 +22,13 @@ package = { xpm = { linux = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", @@ -136,6 +143,13 @@ package = { }, }, macosx = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", @@ -250,6 +264,13 @@ package = { }, }, windows = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", diff --git a/pkgs/m/mtest.lua b/pkgs/m/mtest.lua index 8d4682b3..1d5ccd59 100644 --- a/pkgs/m/mtest.lua +++ b/pkgs/m/mtest.lua @@ -49,6 +49,9 @@ -- 0.9.0 reads a selection's `!` (the case and the cases it declares are left out) -- and `?` (selected where declared, not missing otherwise), so a runner divides a -- long case by the cases it declares (SPEC-017 P4.3). +-- +-- 0.10.0 records a timed-out program's processes, asks it to end, and ends what still +-- runs after its grace (`grace`, `timeout_record`). package = { spec = "1", namespace = "mcpplibs", @@ -67,6 +70,13 @@ package = { xpm = { linux = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", @@ -195,6 +205,13 @@ package = { }, }, macosx = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz", @@ -323,6 +340,13 @@ package = { }, }, windows = { + ["0.10.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.10.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.10.0/mtest-v0.10.0.tar.gz", + }, + sha256 = "70c81ff6c6ef6a4b29918e0fa8105e87a5f5b373db584d37cb217772a733f818", + }, ["0.9.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.9.0.tar.gz",