[CMake] regular expression help: set a variable for all source file

Grant Tang grant.tang at gmail.com
Wed Mar 1 21:01:16 EST 2006


I just add a new target 'test' to EMAN2 makefile. Which is used to call all
the python unit test file. All these test files will be installed to
EMAN2/test/rt directory.

So you can run unit test in one command:
$make test
after your make install.

Or you could go to EMAN2/test/rt directory run rt.py or any individual
test_xxx.py file.

I strongly encourage developer to run unit test before and after you change
any EMAN2 function for not breaking any existing code.  And also you are
welcome to add your own unit test in ${EMAN2_SRC}/rt/pyem to corresponding
test_xxx.py file. You can easily follow the existing code as example if you
are not familiar with Python unittest.

I noticed for some linux system, some unit test may not pass. That's because

the buggy library in such system. For all versions of linux distribution I
have, Fedora Core 4 is the worst, and Mandrake 10 is the best.

--
Grant Tang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060301/f2acc0fe/attachment.htm


More information about the CMake mailing list