diff --git a/test/test-jamshlib.js b/test/test-jamshlib.js new file mode 100644 index 0000000..a6f8ae1 --- /dev/null +++ b/test/test-jamshlib.js @@ -0,0 +1,25 @@ +var Shell = require('../build/jamsh/libjamsh.debug.js') + +var options = { + modules : { + }, + nameopts : {length:8, memorable:true, lowercase:true}, + Nameopts : {length:8, memorable:true, uppercase:true}, + output : function (msg) { + console.log('[LOG] '+msg); + }, + outputAgent : function (msg) { + console.log('[AGE] '+msg); + }, + outputAsync : function (msg) { + console.log('[ASN] '+msg); + }, + server : true, +} +var cmd = Shell(options).init().cmd(); + +cmd.port(DIR.IP('http://localhost:10001')); +cmd.start() + +cmd.exec('stats("vm")'); +cmd.exec('stats("conn")');