mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +00:00
Update testloader,js, and test profile
This commit is contained in:
parent
28474ad477
commit
79fb080e9f
|
@ -118,8 +118,7 @@
|
||||||
{
|
{
|
||||||
"id": "shell_release",
|
"id": "shell_release",
|
||||||
"description": "생성된 쉘 오브젝트 해제",
|
"description": "생성된 쉘 오브젝트 해제",
|
||||||
"tags": ["Windows 시스템", "Windows 쉘(Shell)"],
|
"tags": ["Windows 시스템", "Windows 쉘(Shell)"]
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "powershell_set_command",
|
"id": "powershell_set_command",
|
||||||
|
|
|
@ -2,11 +2,10 @@
|
||||||
|
|
||||||
var FILE = require("lib/file");
|
var FILE = require("lib/file");
|
||||||
|
|
||||||
// read the test profile
|
|
||||||
var profile = JSON.parse(FILE.readFile("data/test-oss-20231030.json", FILE.CdoCharset.CdoUTF_8));
|
var profile = JSON.parse(FILE.readFile("data/test-oss-20231030.json", FILE.CdoCharset.CdoUTF_8));
|
||||||
|
|
||||||
// implement the tests
|
// implement the tests
|
||||||
var tests = {
|
var test_implements = {
|
||||||
"es5_polyfills": function() {},
|
"es5_polyfills": function() {},
|
||||||
|
|
||||||
"registry_find_provider": function() {},
|
"registry_find_provider": function() {},
|
||||||
|
@ -146,9 +145,28 @@ var tests = {
|
||||||
"grpc_receive_command": function() {},
|
"grpc_receive_command": function() {},
|
||||||
|
|
||||||
"gui_check": function() {}
|
"gui_check": function() {}
|
||||||
}
|
};
|
||||||
|
|
||||||
function main(args) {
|
function main(args) {
|
||||||
|
var test_id = args[0];
|
||||||
|
|
||||||
|
if (test_id in test_implements) {
|
||||||
|
var test = profile.tests.find(function(x) {
|
||||||
|
return (x.id == test_id);
|
||||||
|
});
|
||||||
|
var description = test.description;
|
||||||
|
|
||||||
|
console.log("Will be test: " + description);
|
||||||
|
|
||||||
|
try {
|
||||||
|
test_implements[test_id]();
|
||||||
|
} catch (e) {
|
||||||
|
console.error("ERROR: " + e.message)
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("Test ended");
|
||||||
|
}
|
||||||
|
|
||||||
console.log(args.join(", "));
|
console.log(args.join(", "));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user