On Mon, Mar 14, 2011 at 6:54 PM, Belcourt, Kenneth kbe...@sandia.gov wrote:
On Mar 14, 2011, at 4:19 PM, Belcourt, Kenneth wrote:
Hi David,
Oops, busted. The modules I loaded inserted an older version of CMake,
v2.8.1. When I run with my local copy of CMake 2.8.4, the error goes away.
Hi,
The documentation states that the add_test() WORKING_DIRECTORY option
will run the test in the given directory. This add_test rule in my
CMakeLists.txt file:
add_test(
NAME bwr_melgen
WORKING_DIRECTORY ${Bwr_Dir}
COMMAND melgen.x ${Bwr_Dir}/_BWR_v2-0.inp
)
with ${Bwr_Dir} ==
What is the cwd when your test starts?
It should be ${Bwr_Dir} according to your email's WORKING_DIRECTORY arg.
(write a little code that prints it out right at the top of the
program's main before doing anything else...)
What version of ctest is this? (I assume 2.8.4?)
always cd to the
Hi David,
On Mar 14, 2011, at 3:34 PM, David Cole wrote:
What is the cwd when your test starts?
The directory where the executable runs from (/scratch/trunk/tools),
not the directory containing the test input.
It should be ${Bwr_Dir} according to your email's WORKING_DIRECTORY
arg.
On Mar 14, 2011, at 4:19 PM, Belcourt, Kenneth wrote:
Hi David,
Oops, busted. The modules I loaded inserted an older version of
CMake, v2.8.1. When I run with my local copy of CMake 2.8.4, the
error goes away.
Sorry about the noise.
-- Noel