You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Tim Ellison <t....@gmail.com> on 2006/01/31 10:08:37 UTC
[classlib] running security2 tests
Can somebody tell me how to run the security2 tests on the Harmony code?
I can checkout the entire library, and with a JDK on the path, I can
build it all together.
Then if I go into the security2/make dir the ant target to run the tests
(called "tests.run") compiles the test suite code too, so I still need
the JDK on the path -- so how do I run the tests on the Harmony JRE
classlib/deploy?
The security2/make/build.xml still has a bunch of environment
assumptions about my JAVA_HOME / CLASSPATH etc. Can we get rid of them?
Thanks
Tim
--
Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
Re: [classlib] running security2 tests
Posted by Tim Ellison <t....@gmail.com>.
Still not quite there yet, but getting closer.
I've created HARMONY-58 describing my woes. If anyone has any further
insight I'd appreciate it, in the meantime I'll keep hacking.
Regards,
Tim
Geir Magnusson Jr wrote:
>
>
> Tim Ellison wrote:
>> Can somebody tell me how to run the security2 tests on the Harmony code?
>
> $ cd modules/security2/make
> $ set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
> $ ant tests.run
>
> Yes, the classpath thing is awful. I had it working w/ automated
> download of deps but the problem was that what is on ibibilio for bcprov
> is too old. I was going to research what's in bcprov before setting up
> a little repo for us at that ASF.
>
>>
>> I can checkout the entire library, and with a JDK on the path, I can
>> build it all together.
>>
>> Then if I go into the security2/make dir the ant target to run the tests
>> (called "tests.run") compiles the test suite code too, so I still need
>> the JDK on the path -- so how do I run the tests on the Harmony JRE
>> classlib/deploy?
>
> I thought that the ant script took care of that, putting the harmony
> artifacts in the boot classpath
>
>>
>> The security2/make/build.xml still has a bunch of environment
>> assumptions about my JAVA_HOME / CLASSPATH etc. Can we get rid of them?
>
> Yep
>
> geir
>
>
--
Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
Re: [classlib] running security2 tests
Posted by Geir Magnusson Jr <ge...@pobox.com>.
Tim Ellison wrote:
> Can somebody tell me how to run the security2 tests on the Harmony code?
$ cd modules/security2/make
$ set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
$ ant tests.run
Yes, the classpath thing is awful. I had it working w/ automated
download of deps but the problem was that what is on ibibilio for bcprov
is too old. I was going to research what's in bcprov before setting up
a little repo for us at that ASF.
>
> I can checkout the entire library, and with a JDK on the path, I can
> build it all together.
>
> Then if I go into the security2/make dir the ant target to run the tests
> (called "tests.run") compiles the test suite code too, so I still need
> the JDK on the path -- so how do I run the tests on the Harmony JRE
> classlib/deploy?
I thought that the ant script took care of that, putting the harmony
artifacts in the boot classpath
>
> The security2/make/build.xml still has a bunch of environment
> assumptions about my JAVA_HOME / CLASSPATH etc. Can we get rid of them?
Yep
geir
Re: [classlib] running security2 tests
Posted by Tim Ellison <t....@gmail.com>.
Stepan Mishura wrote:
> I compiled tests with Eclipse JDT compiler . But for building and running
> 'security2' tests additional configuration steps are required because we
> didn't especially design security2/make ant script to run with Harmony
> classlib build. I understand that this causes difficulties. May be it makes
> sense to patch the 'security2' ant script for running tests with the
> classlib.
That would be great -- thanks Stepan.
> Also a possible way to avoid tests recompilation is to comment clean
> statements in the 'security2' ant script. For example,
> Index: modules/security2/make/build.xml
<snip>
ok -- and I can guess that JAVA_HOME needs to be set to the
"classlib\deploy\jre" directory. Can you give me a clue about the
CLASSPATH environment var? Anything else that needs setting up first?
Regards,
Tim
--
Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
Re: [classlib] running security2 tests
Posted by Stepan Mishura <st...@gmail.com>.
Hi Tim
I compiled tests with Eclipse JDT compiler . But for building and running
'security2' tests additional configuration steps are required because we
didn't especially design security2/make ant script to run with Harmony
classlib build. I understand that this causes difficulties. May be it makes
sense to patch the 'security2' ant script for running tests with the
classlib.
Also a possible way to avoid tests recompilation is to comment clean
statements in the 'security2' ant script. For example,
Index: modules/security2/make/build.xml
===================================================================
--- modules/security2/make/build.xml (revision 373787)
+++ modules/security2/make/build.xml (working copy)
@@ -242,7 +242,7 @@
<target name="dist" depends="init, init.win, init.linux, compile.api,
build.jars, build.native, copy.security"
description="Building Security binaries">
<!-- clean up -->
- <delete dir="${tmp}"/>
+ <!--delete dir="${tmp}"/-->
</target>
@@ -261,7 +261,7 @@
</target>
<target name="clean">
- <delete dir="${build.path}"/>
+ <!--delete dir="${build.path}"/-->
</target>
<!-- SUPPORT TARGETS -->
Thanks,
Stepan Mishura
Intel Middleware Products Division
On 1/31/06, Tim Ellison <t....@gmail.com> wrote:
>
> Can somebody tell me how to run the security2 tests on the Harmony code?
>
> I can checkout the entire library, and with a JDK on the path, I can
> build it all together.
>
> Then if I go into the security2/make dir the ant target to run the tests
> (called "tests.run") compiles the test suite code too, so I still need
> the JDK on the path -- so how do I run the tests on the Harmony JRE
> classlib/deploy?
>
> The security2/make/build.xml still has a bunch of environment
> assumptions about my JAVA_HOME / CLASSPATH etc. Can we get rid of them?
>
> Thanks
> Tim
>
> --
>
> Tim Ellison (t.p.ellison@gmail.com)
> IBM Java technology centre, UK.
>