You are here

partial success with unit test

2 posts / 0 new
Last post
partial success with unit test
#1

I was installing rosetta 3 on Ubuntu 10.04 LTS with GCC 4.3,the compilation using 'scons bin mode=release 'went smoothly,and the 'scons cat=test' also went well,however,running 'test/run.py' ended up with a success rate of only 41% .Acutally I will be doing a little bit of development work with rosetta,so I decide it's better to find out what's keeping me from getting a success rate of 100%.Anybody got an idea?

Post Situation: 
Sat, 2011-04-09 23:34
skipper

If that many tests crash, it usually means the test executeable itself crashed. It's nearly impossible to cause that many tests to fail without crashing something. If it says things like protocols.test: ALL, that means the protocols.test chunk crashed.

Your command lines suggest you compiled the libraries in release mode, but the tests in debug mode. This is a problem. You need to compile both the same; the tests ought to run OK in release mode, so I suggest compiling both in release mode:
scons bin mode=release
scons cat=test mode=release
Then when running test.py, use its help function to see its flags, it should have one for mode==release or somesuch.

If it still fails after that, we can start trying to pick apart which test is crashing and why. The next most likely thing is some sort of database reading error.

Sun, 2011-04-10 08:17
smlewis