migrate: own clock/datetime/env/process/random sources and baseline assertions

Move the official stdlib system modules to their unique source authority without
changing public std: paths or host authorization. Carry the pre-migration product
assertions into component cases captured from the baseline Bundle; the process
case resolves the granted program and expected stdout from the verified CLI.

Refs cflmy/marqdo#9, cflmy/marqdo-std-system#1
This commit was merged in pull request #2.
This commit is contained in:
cflmy committed 2026-11-26 23:30:25 +08:00
1 parent e1c4da4cc5
commit 053ddb0e59
19 files changed
+949 -6

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
{
"schema": "marqdo.stdlib-test-case",
"schema_version": 1,
"name": "clock",
"file": "clock.mq.md",
"require_module": "clock.mq.md",
"args": [],
"stdin": "",
"env": {},
"expected_stdout": "",
"expected_terminal": {
"items": [
{
"type": "bool",
"value": true
},
{
"type": "text",
"value": "Int"
},
{
"type": "bool",
"value": true
}
],
"type": "list"
}
}
+44
View File
@@ -0,0 +1,44 @@
{
"schema": "marqdo.stdlib-test-case",
"schema_version": 1,
"name": "datetime",
"file": "datetime.mq.md",
"require_module": "datetime.mq.md",
"args": [],
"stdin": "",
"env": {},
"expected_stdout": "",
"expected_terminal": {
"items": [
{
"type": "text",
"value": "1970-01-01T00:00:00Z"
},
{
"type": "text",
"value": "2023-11-14T22:13:20.123Z"
},
{
"decimal": "0",
"type": "int"
},
{
"decimal": "1795248000123",
"type": "int"
},
{
"type": "bool",
"value": false
},
{
"type": "bool",
"value": false
},
{
"type": "text",
"value": "1969-12-31T23:59:59.999Z"
}
],
"type": "list"
}
}
+47
View File
@@ -0,0 +1,47 @@
{
"schema": "marqdo.stdlib-test-case",
"schema_version": 1,
"name": "env",
"file": "env.mq.md",
"require_module": "env.mq.md",
"args": [
"--allow-env",
"MARQDO_TEST_ENV",
"--allow-env",
"MARQDO_MISSING_ENV"
],
"stdin": "",
"env": {
"MARQDO_TEST_ENV": "env-value"
},
"expected_stdout": "",
"expected_terminal": {
"items": [
{
"type": "bool",
"value": true
},
{
"type": "bool",
"value": true
},
{
"type": "bool",
"value": true
},
{
"type": "text",
"value": "env-value"
},
{
"type": "bool",
"value": false
},
{
"type": "text",
"value": "env.not_found"
}
],
"type": "list"
}
}
+41
View File
@@ -0,0 +1,41 @@
{
"schema": "marqdo.stdlib-test-case",
"schema_version": 1,
"name": "process",
"file": "process.mq.md",
"require_module": "process.mq.md",
"args": [
"--allow-env",
"MARQDO_TEST_PROCESS_PROGRAM",
"--allow-process",
"$MARQDO_BIN"
],
"stdin": "",
"env": {
"MARQDO_TEST_PROCESS_PROGRAM": "$MARQDO_BIN"
},
"expected_stdout": "",
"expected_terminal": {
"items": [
{
"type": "bool",
"value": true
},
{
"decimal": "0",
"type": "int"
},
{
"type": "text",
"value": {
"$bin_version": true
}
},
{
"type": "text",
"value": ""
}
],
"type": "list"
}
}
+38
View File
@@ -0,0 +1,38 @@
{
"schema": "marqdo.stdlib-test-case",
"schema_version": 1,
"name": "random",
"file": "random.mq.md",
"require_module": "random.mq.md",
"args": [
"--allow-random"
],
"stdin": "",
"env": {},
"expected_stdout": "",
"expected_terminal": {
"items": [
{
"type": "bool",
"value": true
},
{
"decimal": "16",
"type": "int"
},
{
"type": "bool",
"value": true
},
{
"type": "bool",
"value": true
},
{
"type": "bool",
"value": true
}
],
"type": "list"
}
}