Commit Graph

51 Commits

Author SHA1 Message Date
Charlie Groves 377fafae1e Add asunit tests for generated streamables
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6198 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-15 00:42:12 +00:00
Michael Bayne c431ee00d1 No ant runtime libraries when compiling please.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6193 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-10-14 16:14:51 +00:00
Michael Bayne 9d93ea7a90 Nixed our ATUnit dependency which wasn't working. Better that we just do the
Guicing we need ourselves.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5884 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-07-21 00:29:37 +00:00
Michael Bayne 1a6e705f81 Made "ant tests" compile and run the tests not just compile them.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5557 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-11-18 21:14:56 +00:00
Jamie Doornbos 45f0f9d8b7 Updated smoke test to kill some bureaus
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5239 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-18 00:09:38 +00:00
Jamie Doornbos 8ce8e69b59 Changed BureauRegistry to use Launcher and updated bureau tests
* Moved the thane-specific TestClientMain out into src/thane and renamed 
  BureauTestClient
* Removed server name and port from the registry init and from the Launcher/
  CommandGenerator parameters. These can be inserted by the caller
* Converted all the asc junk to compc/mxmlc the same as msoy does it
* Moved the test client main function into src/as land
* Added extdeps.suffix alternative approach since tests/build.xml does not
  get launched from nifty ooo-libs container
* Fixed bureau test targets
* Moved avmthane to overridable property and corrected out of date default
* Converted BureauRegistry code to deal with Launcher objects and added shim
  to preserve use of CommandGenerator
* Fixed narya build to remove thane-config.xml after building aslib


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5218 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-02 23:44:11 +00:00
Michael Bayne 3aefc93838 Holy fruity beverage Batman! I'm taking the plunge and switching to Guice for
dependency resolution and management. Things are currently in a state of
transition, but the important patterns have been established and I'll aim to
sweep through all of Narya, Nenya and Vilya in the near future and do
everything properly.

Going through the other million-odd lines of code we have scattered across our
various projects that use these libraries is not something I plan to do, so
we'll be maintaining backward compatibility with the old static member method,
though I hope to strive toward eradication of that usage entirely in MSOY while
we still have a fighting chance.

Given that some of our projects will continue to use the static member method
in perpetuity, I'm not going to @Deprecate those fields because that would fill
their logs with so much spam that they'd have to turn off deprecation warnings
which would make life worse for them. So instead we'll settle for the big scary
comment warning people away from the old bits.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5153 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-07 17:44:48 +00:00
Jamie Doornbos 7ac8aa5583 More jiggering pokering workarounds for crapness of asc (files built with AscLibTask cannot be used to execute a VM, only to build a VM)... confusing, I know... ask Zell
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5142 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-05-30 01:10:29 +00:00
Jamie Doornbos 257c942745 Updates narya bureau test to use AscLibTask and AscTask
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5135 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-05-27 22:27:31 +00:00
Jamie Doornbos 3940a13e32 Preparing narya abc for mavenification: renamed naryalib.abc to narya-abc.abc so artifactId does not conflict. Also fixed narya-dist to include bureau classes and swapped in new hard-wired avmthane for test client target.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5114 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-05-21 23:39:35 +00:00
Par Winzell 5f32756b0a Use the new asc.jar here too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5094 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-05-15 16:57:22 +00:00
Jamie Doornbos d63fd40f74 Narya test targets (bureau fixes)
* Fixed misspelled "port" parameter
* Added check targets to prevent overwrite of executing file
* Tuned test parameters to try to capture logon failure


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5083 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-05-12 23:29:39 +00:00
Jamie Doornbos c2a7e52626 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
2008-05-10 00:57:22 +00:00
Par Winzell 993ae240b3 ScriptCompiler croaks and dies on this, let's try Main. I think we're going to end up writing our own frontend for this compiler, these are all so broken. Witness the bizarre need to move the target file at the end here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5064 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-05-09 15:57:05 +00:00
Jamie Doornbos f9238c8732 Dashes not allowed inside comments
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5059 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-05-09 06:58:37 +00:00
Jamie Doornbos c626095393 First stab at test code to run a thane bureau - not yet runnable
* New directory tests/src/as with port of java test client
* New build target "abclib" to create a library of the test classes specified 
  in etc/asc_files.txt
* New target to compile TestClientMain.as against testslib.abc and another to 
  run it.

(This proposes the naming convention of *Main.as for "main" thane code and 
main-*.abc for the compiled code)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-05-09 06:40:53 +00:00
Jamie Doornbos e74035a05c Bureaucracy smoke test and resulting bug fixes
* Added RegistryTester smoke test which randomly creates and destroys agents 
  in batches
* Fixed bug where correct agent id was never making it to client
* Implemented Bureau.toString (+refactored summarize method)
* Fixed nasty bug due to my assumption that SafeSubscriber =~ Subscriber, they 
  are in fact completely different


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5032 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-30 17:55:40 +00:00
Jamie Doornbos f41233c5ac Bureaucracy review updates and hello world test
* Fleshed out client-side Agent class, made abstract
* Delegate the creation of the bureau director to subclasses of BureauClient
* Moved BureauDirector's BureauReceiver and Subscriber implementations to 
  anonymous classes that delegate to protected methods.
* Use SafeSubscriber
* Added new service method for notiyfing the server when the creation of an
  agent fails so that the registry is not perpetually waiting
* Made BureauCredentials more conformant
* Made BureauRegistry respond properly to client logging off
* Got rid of superfluous uses of safeToString
* Changed Launcher to CommandGenerator and now use ProcessBuilder and 
  copyMergedOutput
* Changed bureau process parameters to server name and port instead of URL


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5030 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-29 18:34:51 +00:00
Jonathan Le Plastrier cade4b6435 Narya now builds using from dist/lib. Also, the weave taskdef reports a warning if it cannot find the retroweaver jars, instead of preventing ant from running. These changes will need to happen on the other rings as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4379 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-09-26 20:23:05 +00:00
Michael Bayne afad7dd444 Added support for streaming List and ArrayList natively. A List will be
unmarshalled into an ArrayList on the receiver. Along the way, I improved
support for generic types as arguments to invocation services (which required
one unfortunate "sweeping" warning suppression, but since this is in generated
code, I think we can be sure it won't be doing anything untoward).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4375 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-09-19 00:31:50 +00:00
Michael Bayne 7cc7f75bcc No longer need these dependency checks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4260 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-12 17:43:57 +00:00
Michael Bayne 77290fc1a6 Fixed type-unsafety and deprecation bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4247 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-05 18:59:31 +00:00
Michael Bayne 237419b179 Exclude the openal package unless the lwjgl libraries are present.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3671 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 07:32:33 +00:00
Michael Bayne 817d246cb1 Need to exclude JME bits when we don't have the right jar files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3616 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 23:29:08 +00:00
Michael Bayne 4036d12121 Further test fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3358 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-17 02:14:44 +00:00
Michael Bayne c0cd2cd3ca Further repairs to the build configuration.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3356 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-17 02:05:35 +00:00
Michael Bayne 2198748dcb Brought the tests back into the land of compilability.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3355 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-17 01:54:54 +00:00
Michael Bayne 5970b1eef9 Removed the explicit specification of the build compiler and optimization
configurations. We'll specify these in the top-level ant invocation and it
can filter down for the whole build.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2820 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-06 21:24:30 +00:00
Michael Bayne a4df939073 No need to get libraries out of our parent's lib dir. It's all in
JAVA_LIBS and the dist/classes now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2247 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-06 23:57:27 +00:00
Michael Bayne e54a4d41f4 The great invocation services rethink of 2002! Rearchitected the remote
method invocation services and converted everything to the new style.
Could this be my biggest checkin ever?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1642 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-14 19:08:01 +00:00
Michael Bayne 8e4d4382bd ComponentBundlerTask now requires the action definitions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1492 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 21:15:47 +00:00
Michael Bayne 11251fef90 Formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1243 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-15 17:45:24 +00:00
Ray Greenwell e3bd4dfcfd configure fringe as part of the tsbundles target.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1215 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-06 22:18:51 +00:00
Michael Bayne 1303897d3d The tileset bundler task is called differently now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1179 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-03 22:25:22 +00:00
Michael Bayne b18c6dc7bf Blow away the test tileset map file so that it's recreated consistently
every time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1178 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-03 22:24:17 +00:00
Michael Bayne 873406f6c5 Moved male pirate components into their own directory (which prefixes all
their class names with male/).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1112 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-03-08 22:37:21 +00:00
Michael Bayne 2a6b668a98 Blow away the component map file before building so that it's consistent
between component repository rebuilds at present.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1092 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-03-05 07:11:21 +00:00
Michael Bayne cbcf5d217e Revamped bundle stuff to put all actions and classes in one top-level
metadata bundle and just the components in separate component bundles.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 22:10:30 +00:00
Michael Bayne 947107b0ba Added another set of component bundles for ships.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1049 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 20:00:32 +00:00
Michael Bayne fcca82c3f6 Added build directives to generate dobj source files; made test object a
generated dobj class.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@969 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-08 23:17:38 +00:00
Michael Bayne 0f47b72787 Repackaging! Changed a bunch of foo.tools.bar to foo.bar.tools and brought
some other things up to date with changes that had been made to that
effect previously. I love the vast sweeping changes that come along with a
change of mind.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@933 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-05 20:29:10 +00:00
Michael Bayne dc00808761 Get shared java libraries from JAVA_LIBS; use resource_url instead of
application.root.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@863 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-16 03:00:37 +00:00
Michael Bayne ec9986a365 Put test code first in classpath.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@738 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 03:37:14 +00:00
Michael Bayne 89f8ef5d68 Changed default target to compile because we don't always want to run the
tests.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@702 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-29 22:00:37 +00:00
Michael Bayne 244b301909 Build the objects tileset bundle as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@694 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-29 21:54:07 +00:00
Michael Bayne f49005a40c Added a target for building tileset bundles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@672 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-29 00:19:49 +00:00
Michael Bayne 67b388cadc We'll be compiling the builder app now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@644 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-27 08:41:18 +00:00
Michael Bayne be313f8922 *** empty log message ***
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@639 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-27 08:06:57 +00:00
Michael Bayne 2d064262a4 Need to define the application.root system property in case tests want to
use a resource manager.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@633 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-21 02:40:33 +00:00
Michael Bayne 0010525ee7 Run JUnit in a separate JVM to avoid XML parser jar file conflicts.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@619 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-18 04:05:26 +00:00