migrate: own fs/file and path sources with host-authorization assertions
Move the official stdlib file and path modules to their unique source authority without changing public paths or host authorization. Carry the pre-migration product assertions, including the bounded read and cleanup semantics. Refs cflmy/marqdo#9, cflmy/marqdo-std-fs#1
This commit was merged in pull request #2.
This commit is contained in:
1 parent
3ef21c7de0
commit
63bceae587
10 files changed
+893
-6
No files matched your search
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"schema": "marqdo.stdlib-test-case",
|
||||
"schema_version": 1,
|
||||
"name": "fs",
|
||||
"file": "fs.mq.md",
|
||||
"require_module": "fs/file.mq.md",
|
||||
"args": [
|
||||
"--allow-read",
|
||||
"out",
|
||||
"--allow-read",
|
||||
"out/**",
|
||||
"--allow-write",
|
||||
"out",
|
||||
"--allow-write",
|
||||
"out/**"
|
||||
],
|
||||
"stdin": "",
|
||||
"env": {},
|
||||
"expected_stdout": "",
|
||||
"expected_terminal": {
|
||||
"items": [
|
||||
{
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"decimal": "7",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"value": "file"
|
||||
},
|
||||
{
|
||||
"decimal": "7",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"type": "text",
|
||||
"value": "fs-a.txt"
|
||||
}
|
||||
],
|
||||
"type": "list"
|
||||
},
|
||||
{
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"value": "你好\n"
|
||||
},
|
||||
{
|
||||
"decimal": "7",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"value": "你好\n世界\n"
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"type": "text",
|
||||
"value": "fs-b.txt"
|
||||
}
|
||||
],
|
||||
"type": "list"
|
||||
},
|
||||
{
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"type": "bool",
|
||||
"value": true
|
||||
}
|
||||
],
|
||||
"type": "list"
|
||||
},
|
||||
"clean": [
|
||||
"out"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user