Skip to main content

Testing current phoneme_advanced implementation

8 replies [Last post]
tellmemore
Offline
Joined: 2008-03-05

I want to know how can i test the build that i created using phoneme_advanced sources for my arm board. I can see there is testclasses.zip created during build process. I tried some if them. Some failed on my setup. some succeeded. I want to know is there any way by which i can run all the test cases in one command. or fewer command for that matter.
Is there any other tools/testing suite which community uses to verify phoneme_advanced ??
The idea is to test the setup as much as possible , so if you could suggest me some test suites/tests to use, it would be gr8 help indeed.

--Rohit

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tellmemore
Offline
Joined: 2008-03-05

On my qemu machine wih arm config, i could run same cvm buid successfully and i see 411 tests passed and 0 failed. So for time being i am ignoring this on my physical board one assuming something to do with board setup.
But can somebody confirm , that it any of the test were to fail, will i be able to see some warning/error messages on console before the final summary is printed ?? I am just trying to make sure i am not ignoring something as trivial as that. As i dont see any other messages ,
i am assuming summary does not get printed but all tests successfully passed.

Anyways thanks everyone for all the suggestions.

--Rohit

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> On my qemu machine wih arm config, i could run same cvm buid successfully and i see 411 tests passed and 0 failed. So for time being i am ignoring this on my physical board one assuming something to do with board setup.
> But can somebody confirm , that it any of the test were to fail, will i be able to see some warning/error messages on console before the final summary is printed ?? I am just trying to make sure i am not ignoring something as trivial as that. As i dont see any other messages ,
> i am assuming summary does not get printed but all tests successfully passed.
>
> Anyways thanks everyone for all the suggestions.
>

Hi Rohit,

As mentioned on the other thread either attach gdb to the hanging
process or disable the kill(pid, SIGSTOP) in
src/linux-mips/javavm/runtime/segvhandler_arch.c and
src/linux/javavm/runtime/sync_md.c (as Chris points) to see the exact
error message for your crash so that we can help you figure out what is
wrong.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> I want to know how can i test the build that i created using phoneme_advanced sources for my arm board. I can see there is testclasses.zip created during build process. I tried some if them. Some failed on my setup. some succeeded. I want to know is there any way by which i can run all the test cases in one command. or fewer command for that matter.
> Is there any other tools/testing suite which community uses to verify phoneme_advanced ??
> The idea is to test the setup as much as possible , so if you could suggest me some test suites/tests to use, it would be gr8 help indeed.
>

Hi Rohit,

Have you tried this?

cvm -cp testclasses.zip Test

The Test main class should run through all the tests in one run.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

tellmemore
Offline
Joined: 2008-03-05

Starting test1 again
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...link
...link
...link
test6: Caught inner java.lang.NullPointerException
test6: Caught outer java.lang.NullPointerException
Testing Array Copy
*TestE exception thrown because "I'm feeling Testy"
* threw java.lang.ExceptionInInitializerError
* threw java.lang.NoClassDefFoundError: StaticE
c1 = class [LTest;
c2 = class [[LTest;
c3 = class [LC;
c4 = class [[LC;
c1.modifiers = 1041
c2.modifiers = 1041
c3.modifiers = 1040
c4.modifiers = 1040
*FloatMIN =1.4E-45
*FloatMAX =3.4028235E38
FloatMIN (the int bits) =1
FloatMAX (the int bits) =2139095039
java.lang.IllegalArgumentException: too many dimensions
at java.lang.reflect.Array.multiNewArray(Native Method)
at java.lang.reflect.Array.newInstance(Unknown Source)
at Test.testDeepArrayConstruction(Unknown Source)
at Test.main(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)
Constructed an object of type [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[LTest;
finally!
Requesting GC with a latency request of 2 seconds
(Turning GC tracing on)
Sleeping 5 seconds, and waiting for GC's
Woke up! Cancelling latency request

This is what i get if i do cvm -cp testclasses.zip Test .
Any idea what might be gong wrong with my setup ??

cjplummer
Offline
Joined: 2006-10-16

What do you feel is wrong? The output looks normal to me, except you are missing the last line that says something like "411 out of 411 tests passed". Are you seeing this line, or is cvm hanging and not exiting?

Chris

tellmemore
Offline
Joined: 2008-03-05

Well i don't see anything after whatever i dumred in prev post.And my cvm exits after that.
Machine does not hang. Its running perfectly alright i can run same test again but same result.
So i do not know how much of the tests passed and how many failed ??
Can you dump output in reply to this post from your cvm-run ??

cjplummer
Offline
Joined: 2006-10-16

*Number of command line arguments: 0
Starting test1
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...link
...link
...link
Starting test1 again
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...recurse
...link
...link
...link
test6: Caught inner java.lang.NullPointerException
test6: Caught outer java.lang.NullPointerException
Testing Array Copy
*TestE exception thrown because "I'm feeling Testy"
* threw java.lang.ExceptionInInitializerError
* threw java.lang.NoClassDefFoundError: StaticE
c1 = class [LTest;
c2 = class [[LTest;
c3 = class [LC;
c4 = class [[LC;
c1.modifiers = 1041
c2.modifiers = 1041
c3.modifiers = 1040
c4.modifiers = 1040
*FloatMIN =1.4E-45
*FloatMAX =3.4028235E38
FloatMIN (the int bits) =1
FloatMAX (the int bits) =2139095039
java.lang.IllegalArgumentException: too many dimensions
at java.lang.reflect.Array.multiNewArray(Native Method)
at java.lang.reflect.Array.newInstance(Unknown Source)
at Test.testDeepArrayConstruction(Unknown Source)
at Test.main(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)
Constructed an object of type [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[LTest;
finally!
Requesting GC with a latency request of 2 seconds
(Turning GC tracing on)
Sleeping 5 seconds, and waiting for GC's
Woke up! Cancelling latency request
.............
*CONGRATULATIONS: test Test completed with 411 tests passed and 0 failures
*Output lines starting with a * should be checked for correctness
*They can be compared to src/share/javavm/test/TestExpectedResult

tellmemore
Offline
Joined: 2008-03-05

Dont know what is wrong with the setup. This might be something to do with my board setup i guess.
Also when i start cvm , it gets SIGSTOP immediately. I need to give it SIGCONT manually and then it proceeds. And in the end again it has now become zombie. (ps status shows Z)
And nothing happens after that. So i do not see error message as such but how many passed and how many failed i can not see.