OPM/opm-core — pull request #153 by rolk (2013-02-19 13:37:36+00:00)
Title: make tests fails for out-of-tree builds

This is an ubuntu precise amd64 box. make 'test' fails with 'BAD COMMAND'.

reason is it tries to set the working directory to an invalid directory,
${CMAKE_BINARY_DIR}/tests. no such directory is created on my box.

$ cmake --version
cmake version 2.8.7

git

git clean -xfd
mkdir d
cd d
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1
make
make test
1/10 Test #1: sparsevector .....................***Not Run 0.00 sec
The following tests FAILED:
1 - sparsevector (BAD_COMMAND)

for reference the same happens in a pbuilder chroot.

apparently it's supposed to copy the test data files into the binary dir. the files fail to be copied there.

if i manually copy the files there;
mkdir tests
cp ../tests/*.xml tests
make test

it runs fine.