Skip to content

Commit 904d3c6

Browse files
authored
mtest 0.11.1: a command an end-to-end case runs holds to what its case has left (time_left()) (#866)
1 parent 417ea59 commit 904d3c6

7 files changed

Lines changed: 112 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
### Added
1111

12+
- **mtest 0.11.1(mcpplibs.mtest、.manifest、.gtest、.capi、.doctest)。** `time_left()` 给出用例余下的时间(其自身与外层作用域的
13+
`timeout` 中最早结束者);`e2e::run` 让一条命令在此之内结束,扣除结束命令所需与留给用例报告的时间。成员 tests/examples/mtest-doctest
14+
移到 0.11.1。
1215
- **mcpplibs.cmdline 0.0.5.** `snapshot(const App&)` 是导出的函数,与 docs/api.md 所述一致:程序由解析它所用的定义列出自身的
1316
命令与选项(mcpp 的 `mcpp emit surface`)。测试成员移到 0.0.5,并检验这一项。
1417
- **mtest 0.11.0(mcpplibs.mtest、.manifest、.gtest、.capi)与新包 mcpplibs.mtest.doctest。** 协议的 `step` 与 `exercise` 事件(P5.6);

‎pkgs/m/mcpplibs.mtest.capi.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ package = {
2121

2222
xpm = {
2323
linux = {
24+
["0.11.1"] = {
25+
url = {
26+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
27+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
28+
},
29+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
30+
},
2431
["0.11.0"] = {
2532
url = {
2633
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -163,6 +170,13 @@ package = {
163170
},
164171
},
165172
macosx = {
173+
["0.11.1"] = {
174+
url = {
175+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
176+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
177+
},
178+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
179+
},
166180
["0.11.0"] = {
167181
url = {
168182
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -305,6 +319,13 @@ package = {
305319
},
306320
},
307321
windows = {
322+
["0.11.1"] = {
323+
url = {
324+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
325+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
326+
},
327+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
328+
},
308329
["0.11.0"] = {
309330
url = {
310331
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",

‎pkgs/m/mcpplibs.mtest.doctest.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ package = {
2121

2222
xpm = {
2323
linux = {
24+
["0.11.1"] = {
25+
url = {
26+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
27+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
28+
},
29+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
30+
},
2431
["0.11.0"] = {
2532
url = {
2633
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -30,6 +37,13 @@ package = {
3037
},
3138
},
3239
macosx = {
40+
["0.11.1"] = {
41+
url = {
42+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
43+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
44+
},
45+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
46+
},
3347
["0.11.0"] = {
3448
url = {
3549
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -39,6 +53,13 @@ package = {
3953
},
4054
},
4155
windows = {
56+
["0.11.1"] = {
57+
url = {
58+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
59+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
60+
},
61+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
62+
},
4263
["0.11.0"] = {
4364
url = {
4465
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",

‎pkgs/m/mcpplibs.mtest.gtest.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ package = {
2020

2121
xpm = {
2222
linux = {
23+
["0.11.1"] = {
24+
url = {
25+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
26+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
27+
},
28+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
29+
},
2330
["0.11.0"] = {
2431
url = {
2532
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -162,6 +169,13 @@ package = {
162169
},
163170
},
164171
macosx = {
172+
["0.11.1"] = {
173+
url = {
174+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
175+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
176+
},
177+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
178+
},
165179
["0.11.0"] = {
166180
url = {
167181
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -304,6 +318,13 @@ package = {
304318
},
305319
},
306320
windows = {
321+
["0.11.1"] = {
322+
url = {
323+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
324+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
325+
},
326+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
327+
},
307328
["0.11.0"] = {
308329
url = {
309330
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",

‎pkgs/m/mcpplibs.mtest.manifest.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ package = {
2222

2323
xpm = {
2424
linux = {
25+
["0.11.1"] = {
26+
url = {
27+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
28+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
29+
},
30+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
31+
},
2532
["0.11.0"] = {
2633
url = {
2734
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -150,6 +157,13 @@ package = {
150157
},
151158
},
152159
macosx = {
160+
["0.11.1"] = {
161+
url = {
162+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
163+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
164+
},
165+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
166+
},
153167
["0.11.0"] = {
154168
url = {
155169
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -278,6 +292,13 @@ package = {
278292
},
279293
},
280294
windows = {
295+
["0.11.1"] = {
296+
url = {
297+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
298+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
299+
},
300+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
301+
},
281302
["0.11.0"] = {
282303
url = {
283304
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",

‎pkgs/m/mtest.lua‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
-- and diagnostic lines at its end, holds one budget for the machine (O11), waits at
5858
-- contention points under jitter (O12), records the machine's class, judges [budget] and
5959
-- [ledger.*] in the gate, and costs a file's first case and expectation 265 ms under GCC.
60+
--
61+
-- 0.11.1 holds a command an end-to-end case runs to what its case has left of its time
62+
-- (`time_left()`).
6063
package = {
6164
spec = "1",
6265
namespace = "mcpplibs",
@@ -75,6 +78,13 @@ package = {
7578

7679
xpm = {
7780
linux = {
81+
["0.11.1"] = {
82+
url = {
83+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
84+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
85+
},
86+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
87+
},
7888
["0.11.0"] = {
7989
url = {
8090
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -217,6 +227,13 @@ package = {
217227
},
218228
},
219229
macosx = {
230+
["0.11.1"] = {
231+
url = {
232+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
233+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
234+
},
235+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
236+
},
220237
["0.11.0"] = {
221238
url = {
222239
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",
@@ -359,6 +376,13 @@ package = {
359376
},
360377
},
361378
windows = {
379+
["0.11.1"] = {
380+
url = {
381+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
382+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.1/mtest-v0.11.1.tar.gz",
383+
},
384+
sha256 = "69c45ff361a99fc578de9450628d86cb64996dfd9c01ff4e9fd71710ec1b3509",
385+
},
362386
["0.11.0"] = {
363387
url = {
364388
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.0.tar.gz",

‎tests/examples/mtest-doctest/mcpp.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ version = "0.1.0"
99
# Use the complete candidate built-in index prepared by tests/run_members.sh.
1010

1111
[dev-dependencies]
12-
mcpplibs.mtest.doctest = "0.11.0"
12+
mcpplibs.mtest.doctest = "0.11.1"

0 commit comments

Comments
 (0)