Updated the testslib target to use Main compiler, added the actual test client code, implemented the target to run the thane test client, tweaked the tester options to run thane and go nice and slow (one operation every 3 seconds and only one instance)

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5074 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Jamie Doornbos
2008-05-10 00:57:22 +00:00
parent d502e33c7f
commit c2a7e52626
3 changed files with 45 additions and 29 deletions
+1
View File
@@ -0,0 +1 @@
package {}
@@ -8,21 +8,26 @@
*/
import avmplus.System;
import com.threerings.bureau.client.TestClient;
for (var i :int = 0; i < System.argv.length; ++i) {
trace("Argv[" + i + "] = " + System.argv[i]);
if (System.argv.length != 4) {
trace("Expected 4 arguments: (token) (bureauId) (server) (port)");
}
/*
var token :String = System.argv[0];
var bureauId :String = System.argv[1];
var server :String = System.argv[2];
var port :int = parseInt(System.argv[3]);
trace("Token: " + token);
trace("BureauId: " + bureauId);
trace("Server: " + server);
trace("Port: " + port);
// create the client and log on
var client :TestClient = new TestClient(
System.getProperty("token"),
System.getProperty("bureauId"));
client.setServer(
System.getProperty("serverName"),
new int[] {Integer.parseInt(System.getProperty("serverPort"))});
var client :TestClient = new TestClient(token, bureauId);
client.setServer(server, [port]);
client.logon();
// run it
client.run();
*/
//client.run();