This commit is contained in:
Namhyeon Go 2024-07-10 19:54:18 +09:00
parent 0f8557b09f
commit c49d2720f2
2 changed files with 13 additions and 4 deletions

View File

@ -55,8 +55,10 @@ Router.add('/', function(render) {
// test // test
Router.add('/test', function(render) { Router.add('/test', function(render) {
var test_profile_filepath = "data/test-oss-korea-2023.json";
window.test_start = function(test_id) { window.test_start = function(test_id) {
SHELL.show(["cscript", "app.js", "testloader", test_id]); SHELL.show(["cscript", "app.js", "testloader", test_id, test_profile_filepath]);
}; };
window.gui_check = function() { window.gui_check = function() {
@ -69,7 +71,7 @@ Router.add('/test', function(render) {
alert("모든 메시지가 정상적으로 보였다면 테스트에 성공한 것입니다."); alert("모든 메시지가 정상적으로 보였다면 테스트에 성공한 것입니다.");
}; };
var content = FILE.readFile("data/test-oss-korea-2023.json", FILE.CdoCharset.CdoUTF_8); var content = FILE.readFile(test_profile_filepath, FILE.CdoCharset.CdoUTF_8);
var data = JSON.parse(content); var data = JSON.parse(content);
render("app/test.html", { render("app/test.html", {
"data": data "data": data

View File

@ -420,6 +420,13 @@ var test_implements = {
console.log("응답 시간: " + SYS.ping("1.1.1.1") + "ms"); console.log("응답 시간: " + SYS.ping("1.1.1.1") + "ms");
}, },
"network_bitsadmin_test": function() {
var HTTP = require("lib/http");
var bits = HTTP.create("BITS");
var response = bits.open("GET", "https://httpbin.org/get").send().responseText;
console.log(response);
},
"extramath_dtm": function() { "extramath_dtm": function() {
var ExtraMath = require("lib/extramath"); var ExtraMath = require("lib/extramath");
@ -991,7 +998,7 @@ var test_implements = {
}; };
function main(args) { function main(args) {
// EXAMPLE: cscript app.js testloader <es5_polyfills> <data\test-oss-20231030.json> // EXAMPLE: cscript app.js testloader <es5_polyfills> <data\test-oss-korea-2023.json>
if (args.length > 0) { if (args.length > 0) {
var test_id = args[0]; var test_id = args[0];
var profilefile = args[1]; var profilefile = args[1];