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 (JIRA)" <ji...@apache.org> on 2006/01/31 21:31:34 UTC

[jira] Created: (HARMONY-58) Problems trying to run the security2 test suite

Problems trying to run the security2 test suite
-----------------------------------------------

         Key: HARMONY-58
         URL: http://issues.apache.org/jira/browse/HARMONY-58
     Project: Harmony
        Type: Test
  Components: Classlib  
 Environment: x86, WinXP, repo revision 373866
    Reporter: Tim Ellison


With a combination of Stepan and Geir's instructions I have:

Built the classlib successfully code by:
 - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
 - invoke the default target in trunk/make/build.xml
 - put in the VM

Built the security tests successfully by:
 - cd modules/security2/make
 - ant tests.run  (ignore the run failures)

Tried to run the tests by:
 - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
 - set JAVA_HOME=<trunk/deploy/jre>
 - set PATH=%JAVA_HOME%/bin;%PATH%
 - hack the build.xml to remove the clean-ups
 - ant tests.run

After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
---------------------
<<snip>>
run:
    [junit] Running java.security.AccessControlExceptionTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
    [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
    [junit] Running java.security.AlgorithmParameterGeneratorTest1


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-58?page=all ]

Geir Magnusson Jr reassigned HARMONY-58:
----------------------------------------

    Assign To: Geir Magnusson Jr

> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison
>     Assignee: Geir Magnusson Jr
>  Attachments: security2ClasslibTestsPatch.txt
>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364809 ] 

Geir Magnusson Jr commented on HARMONY-58:
------------------------------------------

Confusion is my fault, as I am those "people" that reported "all tests pass", because I didn't integrate with the core harmony classlib - I was still testing w/ my sun JRE at that point....

> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison
>  Attachments: security2ClasslibTestsPatch.txt
>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-58?page=all ]

Stepan Mishura updated HARMONY-58:
----------------------------------

    Attachment: security2ClasslibTestsPatch.txt

I've added 'test.classlib' target to run security2 tests on Harmony code base. So the following steps are required:

- build the classlib
- change dir to modules\security2\make
- to compile security2 tests set JAVA_HOME to JDK path 
- set CLASSPATH=<junit.jar>;<bcprov.jar>
- ant test.classlib

Please let me know whether the patch works for you or not.


> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison
>  Attachments: security2ClasslibTestsPatch.txt
>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364779 ] 

Tim Ellison commented on HARMONY-58:
------------------------------------

Thank you Mikhail / Stepan.

My mistake, when people were posting to say the security2 tests passed I had assumed that they were running on the Harmony codebase.

> I'm going to update the security2 ant script to run tests on Harmony class
> lib and provide an exclude list for it 

This is the right answer -- then emptying the exclude list will be a goal for the project.
I'll just sit tight for a while.

You may want to look at the test case exclude-list code that George recently posted to JIRA, I'm sure he'd be happy to explain it.


> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison

>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by Tim Ellison <t....@gmail.com>.
Geir Magnusson Jr wrote:
> What I don't get is why.

Presumably BC is assuming that BigInteger does something real -- and is
spinning 'cos we return null today.  (Only speculation, I never attached
a debugger).

> Oh - what version of BC are people using?
> 
> I used v 1.3.1 for jdk1.4

Me too (bcprov-jdk14-131.jar).

Tim

> geir
> 
> Mikhail Loenko (JIRA) wrote:
>>     [
>> http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364766
>> ]
>> Mikhail Loenko commented on HARMONY-58:
>> ---------------------------------------
>>
>> BouncyCastle tend to hang up when BigInteger returns nulls. Will
>> investigate
>>
>>> Problems trying to run the security2 test suite
>>> -----------------------------------------------
>>>
>>>          Key: HARMONY-58
>>>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>>>      Project: Harmony
>>>         Type: Test
>>>   Components: Classlib
>>>  Environment: x86, WinXP, repo revision 373866
>>>     Reporter: Tim Ellison
>>
>>> With a combination of Stepan and Geir's instructions I have:
>>> Built the classlib successfully code by:
>>>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>>>  - invoke the default target in trunk/make/build.xml
>>>  - put in the VM
>>> Built the security tests successfully by:
>>>  - cd modules/security2/make
>>>  - ant tests.run  (ignore the run failures)
>>> Tried to run the tests by:
>>>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>>>  - set JAVA_HOME=<trunk/deploy/jre>
>>>  - set PATH=%JAVA_HOME%/bin;%PATH%
>>>  - hack the build.xml to remove the clean-ups
>>>  - ant tests.run
>>> After a few targets going by it trys to run the test, but seems to
>>> hang with CPU at 100% and the following output on the console:
>>> ---------------------
>>> <<snip>>
>>> run:
>>>     [junit] Running java.security.AccessControlExceptionTest
>>>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>>>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>>>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209
>>> sec
>>>     [junit] Running java.security.AlgorithmParameterGeneratorTest1
>>
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

Re: [jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by Geir Magnusson Jr <ge...@pobox.com>.
What I don't get is why.

Oh - what version of BC are people using?

I used v 1.3.1 for jdk1.4

geir

Mikhail Loenko (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364766 ] 
> 
> Mikhail Loenko commented on HARMONY-58:
> ---------------------------------------
> 
> BouncyCastle tend to hang up when BigInteger returns nulls. Will investigate
> 
>> Problems trying to run the security2 test suite
>> -----------------------------------------------
>>
>>          Key: HARMONY-58
>>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>>      Project: Harmony
>>         Type: Test
>>   Components: Classlib
>>  Environment: x86, WinXP, repo revision 373866
>>     Reporter: Tim Ellison
> 
>> With a combination of Stepan and Geir's instructions I have:
>> Built the classlib successfully code by:
>>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>>  - invoke the default target in trunk/make/build.xml
>>  - put in the VM
>> Built the security tests successfully by:
>>  - cd modules/security2/make
>>  - ant tests.run  (ignore the run failures)
>> Tried to run the tests by:
>>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>>  - set JAVA_HOME=<trunk/deploy/jre>
>>  - set PATH=%JAVA_HOME%/bin;%PATH%
>>  - hack the build.xml to remove the clean-ups
>>  - ant tests.run
>> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
>> ---------------------
>> <<snip>>
>> run:
>>     [junit] Running java.security.AccessControlExceptionTest
>>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>>     [junit] Running java.security.AlgorithmParameterGeneratorTest1
> 

[jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364766 ] 

Mikhail Loenko commented on HARMONY-58:
---------------------------------------

BouncyCastle tend to hang up when BigInteger returns nulls. Will investigate

> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison

>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364725 ] 

Geir Magnusson Jr commented on HARMONY-58:
------------------------------------------

How long do you wait?

There are some tests that *peg* my processor - they just seems to be computationally intensive.

Do this - 

1) start tests
2) go downstairs.
3) Put water in kettle
4) turn on switch for outlet on wall
5) turn on switch on plug
6) turn on switch on kettle...

it takes a while...

> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison

>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364771 ] 

Stepan Mishura commented on HARMONY-58:
---------------------------------------

Yes, there are hanging and failing tests on Harmony class lib due to a number of reasons. I saw them when I tried to run security tests on contributions combination.
(see http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200511.mbox/%3cBE6943E2116D1B4EB5B85C939C54CBFAADB817@mssmsx402nb%3e)

Most of failures were caused by stub implementation, tests hang up were caused by used provider. The last experiments with contribution of beans, math and regex libraries showed that most of tests failures (including tests hang up) can be resolved by substituting java.math implementation. So we may assume that a reason of hang up is stub implementation of java.math package.

I'm going to update the security2 ant script to run tests on Harmony class lib and provide an exclude list for it


> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison

>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364807 ] 

Tim Ellison commented on HARMONY-58:
------------------------------------

Thanks Stepan,  that fixes it for me.  I'll leave it up to Geir to apply the patch and tidy-up the build file.

> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison
>  Attachments: security2ClasslibTestsPatch.txt
>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by Geir Magnusson Jr <ge...@pobox.com>.
I hate having this convo in JIRA...

Yes, that would be a huge kettle.  I've seen it go a minute or two, and 
I figured you might just be impatient.  I've never had it hang like that.

geir

Tim Ellison (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364738 ] 
> 
> Tim Ellison commented on HARMONY-58:
> ------------------------------------
> 
> I just killed the JUnit test after 135 minutes.  It would have to be a VERY big kettle.
> 
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.2 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1
> 
> BUILD FAILED
> C:\temp\Harmony\trunk\modules\security2\make\build.xml:392: Test java.security.AlgorithmParameterGeneratorTest1 failed
> 
> Total time: 135 minutes 56 seconds
> c:\temp\Harmony\trunk\modules\security2\make>
> 
>> Problems trying to run the security2 test suite
>> -----------------------------------------------
>>
>>          Key: HARMONY-58
>>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>>      Project: Harmony
>>         Type: Test
>>   Components: Classlib
>>  Environment: x86, WinXP, repo revision 373866
>>     Reporter: Tim Ellison
> 
>> With a combination of Stepan and Geir's instructions I have:
>> Built the classlib successfully code by:
>>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>>  - invoke the default target in trunk/make/build.xml
>>  - put in the VM
>> Built the security tests successfully by:
>>  - cd modules/security2/make
>>  - ant tests.run  (ignore the run failures)
>> Tried to run the tests by:
>>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>>  - set JAVA_HOME=<trunk/deploy/jre>
>>  - set PATH=%JAVA_HOME%/bin;%PATH%
>>  - hack the build.xml to remove the clean-ups
>>  - ant tests.run
>> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
>> ---------------------
>> <<snip>>
>> run:
>>     [junit] Running java.security.AccessControlExceptionTest
>>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>>     [junit] Running java.security.AlgorithmParameterGeneratorTest1
> 

[jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364738 ] 

Tim Ellison commented on HARMONY-58:
------------------------------------

I just killed the JUnit test after 135 minutes.  It would have to be a VERY big kettle.

run:
    [junit] Running java.security.AccessControlExceptionTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.2 sec
    [junit] Running java.security.AlgorithmParameterGeneratorTest1

BUILD FAILED
C:\temp\Harmony\trunk\modules\security2\make\build.xml:392: Test java.security.AlgorithmParameterGeneratorTest1 failed

Total time: 135 minutes 56 seconds
c:\temp\Harmony\trunk\modules\security2\make>

> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison

>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (HARMONY-58) Problems trying to run the security2 test suite

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-58?page=all ]
     
Geir Magnusson Jr closed HARMONY-58:
------------------------------------

    Resolution: Fixed

done 

Only difference between patch and what went is is manipulation of boot CP since it was half way - it was depending on security.jar in deploy/jre/bin/lib/boot 

So removed the line and will take up on dev list.

> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison
>     Assignee: Geir Magnusson Jr
>  Attachments: security2ClasslibTestsPatch.txt
>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira