harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chunrong lai <chunrong...@gmail.com>
Subject Re: [build] Help with BTI
Date Fri, 06 Feb 2009 06:48:11 GMT
Looking in BTI scripts
         <java fork="true"
              jvm="${test.jvm.exe}"
              jar="${eclipse.launcher.jar}"
              dir="${ehwa.test.dir}"
              resultproperty="ehwa.result">
I just see that the error of
 "Failed to open JVM DLL: ... (libstdc++.so.5: cannot open shared object
file)", met by Tim,
can still not be caught with the ehwa.result of BTI if setting
failonerror="true" in my side,
although an error like "deploy/jdk/jre/bin/java: not found" can (I manually
delete the java, :-)).

In my understanding a common case is that the java and the libraries are
existed and built with the correct libstdc++ version, if so the java fork
statement in BTI scripts can likely execute and return correct
resultproperty. I would like to think it is an ant (or harmony) issue
instead of BTI issue. I am not sure if we need to improve BTI specially for
that.


On Tue, Feb 3, 2009 at 11:13 AM, Sean Qiu <sean.xx.qiu@gmail.com> wrote:

> For your second question, seems the java task forget to set failonerror,
> below patch[1] can fix it.
> The build will fail when there exist errors now [2].
> But I'll try to make it more flexible rather than hardcode.
> Correct me if I was wrong.
>
> [1]
> xiaoxia:~/bti/infra/build/checkouts/ehwa-api/tests$ svn diff
> Index: ehwa-test.xml
> ===================================================================
> --- ehwa-test.xml       (revision 740180)
> +++ ehwa-test.xml       (working copy)
> @@ -68,6 +68,7 @@
>               jvm="${test.jvm.exe}"
>               jar="${eclipse.launcher.jar}"
>               dir="${ehwa.test.dir}"
> +              failonerror="true"
>               resultproperty="ehwa.result">
>             <jvmarg line="${ehwa.mode.switch} ${test.vmargs}" />
>             <arg line="-application org.eclipse.test.uitestapplication"/>
>
> [2]
>    ......
>     [java]      [java] -run-ehwa-batch:
>     [java]      [java]    [delete] Deleting directory
>
> /home/xiaoxia/bti/infra/build/checkouts/build/linux_x86_gcc_debug/tests/ehwa/wksp
>     [java]      [java]     [mkdir] Created dir:
>
> /home/xiaoxia/bti/infra/build/checkouts/build/linux_x86_gcc_debug/tests/ehwa/wksp
>     [java]      [java]      [echo]
>     [java]      [java]      [echo]
> ==================================
>     [java]      [java]      [echo]         Run Eclipse HelloWorld using
> Server mode JIT
>     [java]      [java]      [echo]
> ==================================
>     [java]      [java]      [echo]
>     [java]      [java]       [for] srv: The following error occurred while
> executing this line:
>     [java]      [java]       [for]
> /home/xiaoxia/bti/infra/build/checkouts/ehwa-api/tests/ehwa-test.xml:38:
> The
> following error occurred while executing this line:
>     [java]      [java]       [for]
> /home/xiaoxia/bti/infra/build/checkouts/ehwa-api/tests/ehwa-test.xml:72:
> java.io.IOException: java.io.IOException:
> /home/xiaoxia/bti/infra/build/checkouts/drlvm/deploy/jdk/jre/bin/java: not
> found
>     [java]      [java]
>     [java]      [java] BUILD FAILED
>     [java]      [java]
> /home/xiaoxia/bti/infra/build/checkouts/ehwa-api/tests/ehwa-test.xml:36:
> Keepgoing execution: 5 of 5 iterations failed.
>     [java]      [java]
>     [java]      [java] Total time: 1 second
>     [java]
>     [java] BUILD FAILED
>     [java] /home/xiaoxia/bti/infra/scripts/run.xml:110: The following error
> occurred while executing this line:
>     [java] /home/xiaoxia/bti/infra/adaptors/ehwa-api/adaptor.xml:98: The
> following error occurred while executing this line:
>     [java] /home/xiaoxia/bti/infra/scripts/framework.xml:163: Java
> returned: 1
>     [java]
>     [java] Total time: 5 seconds
>     [java] Java Result: 1
>   [delete] Deleting: /home/xiaoxia/bti/infra/scripts/tmp.txt
>
> BUILD FAILED
> /home/xiaoxia/bti/infra/build.xml:341: The following suites failed:
> ehwa-api,
>
>
> 2009/2/3 Tim Ellison <t.p.ellison@gmail.com>
>
>  > I could use some help with using the BTI to build and test Harmony.
> >
> > I'm trying to run the short integrity tests, and have a couple of
> > questions already.
> >
> >  - how do I pass arguments into the build?  In particular I need to
> > specify "use.libstdc++6=true" (without editing the files that the BTI
> > checks out, of course).  Defining the property at the top level doesn't
> > pass it through to the subsystems.
> >
> >  - the test runs are failing (since they are built without that property
> > set), but the BTI is reporting them as passing!  See [1]
> >
> > Any help appreciated.
> >
> > [1]
> >
> >
> http://hudson.zones.apache.org/hudson/view/Harmony/job/Harmony-1.5-head-linux-x86_64-BTI_short_integrity/7/console
> >
> > Regards,
> > Tim
> >
>
>
>
>  --
> Best Regards
> Sean, Xiao Xia Qiu
>
> China Software Development Lab, IBM
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message