Re: [eigen] Bug in traspose |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Bug in traspose
- From: Ian Mackenzie <ian.e.mackenzie@xxxxxxxxx>
- Date: Tue, 15 Jan 2008 20:23:12 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=z7XR/NVOyPR3CJvMFBChUgxz+2HynoeMvzf1izcXKyY=; b=XY3RZ1MJ3oaJ89geeFT7x6hDAlKwWosj2q8Aibb0hTCEPAdcABq0LXUwGRJGO43QxAgRE/JMYMJHAeacHaci+gWtcxCa4+9ypyg7Nief/z+rWFBD6msM3k2aK76T0VsLoyIGLgCKc2f++odHExEZzpUz/JNKqINDCj/sz1k8iiw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=S2biYEX5326sDD7Ar7u/M7YP2rqJqZ0i7wHfLxwL2rrQ/9VE1R13w32lMKtHqncF/+P9oEXsGZdKfEs6iPTdteIiqKy1qgxjMGg9EjoEzDBamoihsdDrUVeXk0ovSRKfI3lmeza2/VKrMRFBAntFwHDZ9YS5zAPgmisS2JQ4BqQ=
> Any thoughts on which testing framework you want to switch to?
> I've used CxxTest before and liked it...
I really like CxxTest too - I'm using it for one of my own projects (which,
incidentally, uses Eigen), and it's been great. I was a bit leery initially
of the dependency on either Perl or Python (your choice - a script in each
language is provided that generates test source files from a C++ header you
write), but it's quite easy to integrate into CMake (and in my case I have a
dependency on Python anyways, so it didn't really matter). If it helps,
here's pretty much what I use to generate test executables:
FIND_PACKAGE(PythonInterp REQUIRED)
# Generate test source file
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${test_name}.cpp
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${test_name}.hpp
COMMAND ${PYTHON_EXECUTABLE}
ARGS
${PATH_TO_CXXTEST}/cxxtestgen.py
--error-printer
-o ${CMAKE_CURRENT_BINARY_DIR}/${test_name}.cpp
${CMAKE_CURRENT_SOURCE_DIR}/${test_name}.hpp)
# Create and link test executable
ADD_EXECUTABLE(
${test_name}
${CMAKE_CURRENT_BINARY_DIR}/${test_name}.cpp)
This can be put inside a loop where the test_name variable takes on several
values. In my case, I have a copy of CxxTest in my own project directory, so
instead of ${PATH_TO_CXXTEST} I have a path relative to my project directory.
-Ian