Test for CVS plugin

Matt Rogers mattr at kde.org
Sun Apr 15 23:14:23 UTC 2007


On Sunday 15 April 2007 13:38, Andreas Pakulat wrote:
> On 15.04.07 20:18:47, Andreas Pakulat wrote:
> > On 15.04.07 10:00:01, Matt Rogers wrote:
> > > On Saturday 14 April 2007 17:32, Robert Gruber wrote:
> > > > BTW: When I issue "make test" in kdevelop's builddir, it tells me
> > > > this: Test project /home/kdedev/src/kdevelop/builddir
> > > >   1/  5 Testing kdevcvs-test                     Passed
> > > >   2/  5 Testing qmake-parsetest               Unable to find
> > > > executable: /qmake-parsetest 3/  5 Testing qmake-assignmenttest      
> > > >    Unable to find executable: /qmake-assignmenttest 4/  5 Testing
> > > > qmake-functionscopetest Unable to find executable:
> > > > /qmake-functionscopetest 5/  5 Testing qmake-scopetest              
> > > > Unable to find executable: /qmake-scopetest
> > > >
> > > > 20% tests passed, 4 tests failed out of 5
> > > >
> > > >
> > > > Are the qmake test broken, or do I have to call anything else than
> > > > "make test" to run them?
> > >
> > > I don't know about the qmake tests. Maybe Andreas can tell you more.
> >
> > Well, I'm not sure how this is supposed to work now with CMake 2.4.5 (or
> > newer). Certainly doing add_test()+add_executable is not the "right" way
> > anymore to add tests. I'm not sure yet which is, going to ask on
> > kde-devel if IRC doesn't turn up anything.
>

there is a kde4_add_test IIRC that should work.

> Turns out this is a bug in CMake (according to Thiago), make test
> doesn't build the tests, so you have to run make <testname> first.
> I'll take this to the cmake guys.
>

make test is not supposed to build the tests under CMake. It never has. That's 
what enabling KDE4_BUILD_TESTS is for. 
-- 
Matt




More information about the KDevelop-devel mailing list