Update testloader,js, and test profile

This commit is contained in:
Namhyeon Go 2023-10-30 14:36:22 +09:00
parent 28474ad477
commit 79fb080e9f
2 changed files with 22 additions and 5 deletions

View File

@ -118,8 +118,7 @@
{
"id": "shell_release",
"description": "생성된 쉘 오브젝트 해제",
"tags": ["Windows 시스템", "Windows 쉘(Shell)"],
"tags": ["Windows 시스템", "Windows 쉘(Shell)"]
},
{
"id": "powershell_set_command",

View File

@ -2,11 +2,10 @@
var FILE = require("lib/file");
// read the test profile
var profile = JSON.parse(FILE.readFile("data/test-oss-20231030.json", FILE.CdoCharset.CdoUTF_8));
// implement the tests
var tests = {
var test_implements = {
"es5_polyfills": function() {},
"registry_find_provider": function() {},
@ -146,9 +145,28 @@ var tests = {
"grpc_receive_command": function() {},
"gui_check": function() {}
}
};
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(", "));
}