On 2/28/07, Jeremy Boynes <[EMAIL PROTECTED]> wrote:

On Feb 28, 2007, at 9:37 AM, Simon Laws wrote:
> Running
> org.apache.tuscany.sca.runtime.standalone.smoketest.SmokeTestLauncher
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
> 11.657 sec
> <<< F
> AILURE!
> testLauncherUsage(
> org.apache.tuscany.sca.runtime.standalone.smoketest.SmokeTestL
> auncher)  Time elapsed: 0.812 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<......> but was:<...
> ...>
>        at junit.framework.Assert.assertEquals(Assert.java:81)
>        at junit.framework.Assert.assertEquals (Assert.java:87)
>        at
> org.apache.tuscany.sca.runtime.standalone.smoketest.CommandTestCase.c
> ompareOutput(CommandTestCase.java:37)
>        at
> org.apache.tuscany.sca.runtime.standalone.smoketest.SmokeTestLauncher
> .testLauncherUsage(SmokeTestLauncher.java:40)
>
> Not sure if this is significant.

Generally, yes - in this case it means that the rest of the build for
the "runtime" module failed (which would include the webapp and itest
plugins).

This might be a CRLF issue with the master copy for the test output
as it works for me on OSX (\n type line separators). If so, then
except for aborting the build, it's not significant. Is anyone else
on Windows seeing this as an issue?

> I'm now not sure how to try the calculator sample. I cd to sca/core-
> samples
> (from the mail list this seems to be the correct version of the
> calculator
> sample [2]) and run
> "mvn install" but it doesn't seem to do anything.  Playing with
> building
> various modules this is what seemed to work for me.
>
> cd sca/runtime/itest; mvn install
> cd sca/core-samples/common; mvn install
> cd sca/core-samples/standalone/calculator; mvn install

We need some updated doco there I think.

I don't think there's any point in building all the samples in one go
- that's not very useful for users :-) What we might do perhaps at
the root though is build the common modules, which is what you did
manually.

For the standlone sample, you don't need to install it, just "mvn
package" is OK - we should make that the default goal for that
module. This generates a simple jar that can be run with the launcher:

$ java -jar ${tuscany.installDir}/bin/launcher.jar target/calc.jar
add 2 5
result = 7.0

where tuscany.installDir points to the location where you installed
our distribution (remember, users generally won't be building from
source, they will be using a release). Given you did build the distro
from source, you can find versions in your maven repo
  ~/.m2/repository/org/apache/tuscany/sca/runtime/standalone/assembly/
1.0-alpha-incubating-SNAPSHOT/
  or in the build tree
  sca/runtime/standalone/assembly/target

Hope that helps
--
Jeremy



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Hi Jeremy. As you say the LauncherUsage.txt file has \n alone. I'll give it
a spin tommorrow and see what it is checking against. Thanks for "how to
run" info, now I've done it that first time it's all a bit clearer.

Simon

Reply via email to