My CmakeCache.txt does contain
Just to be clear, make does build the test executables (so vcl_test_all.exe
is in EXECUTABLE_OUTPUT_PATH).
However, ctest cannot execute the tests. (I have no idea what ctest needs,
but I assumed it was the TRAGETS variablem which looks ok).
Maybe this is also a question for the cmake list
> > When I try to run "make test" or "ctest" in any of my build
> > directories, I get messages like:
> > 1/277 Testing vcl_test_algorithm Unable to
> find executable:
> > vcl_test_all
> > ...
> > The following tests FAILED:
> > 1 - vcl_test_algorithm (Not Run)
> > All executables are built though in my target directory,
> but somehow
> > ctest doesn't find any of them. I wonder if this is because
> on CYGWIN,
> > the executable is called vcl_test_all.exe, but actually I have no
> > clue... (I'm a bit confused by cmake and ctest). On the other hand
> > netlib/tests/Makefile does seem to be ok:
> > TARGETS = \
> /home/kris/MyDocuments/devel/vxlbuild/bin/netlib_integral_test.exe \
> /home/kris/MyDocuments/devel/vxlbuild/bin/netlib_lbfgs_example.exe \
> > /home/kris/MyDocuments/devel/vxlbuild/bin/netlib_lsqr_test.exe \
> > /home/kris/MyDocuments/devel/vxlbuild/bin/netlib_slamch_test.exe \
> > /home/kris/MyDocuments/devel/vxlbuild/bin/netlib_tricall.exe
> I'd guess that either
> 1. You haven't turned on the building of the tests.
> Check BUILD_TESTING is "ON" in CMake.
> 2. your build hasn't worked.
> Check you build didn't report any errors.
> vcl_test_all should be in $VXLBIN/vcl/tests
> or if you have modified CMake's
> EXECUTABLE_OUTPUT_PATH variable,
> they'll be in there.