axom icon indicating copy to clipboard operation
axom copied to clipboard

[regression] Tests don't run in last revisions

Open yurivict opened this issue 2 years ago • 4 comments

When -DAXOM_ENABLE_TESTS=ON cmake reconfigures the project but then it says that there is nothing to compile and no 'test' target:

-- Configuring done
-- Generating done
-- Build files have been written to: /disk-samsung/freebsd-ports/science/axom/work/.build
ninja: no work to do.
ninja: error: unknown target 'test', did you mean 'quest'?
*** Error code 1

Tests worked fine in 0.6.1.

rev. 88cac2607 FreeBSD 13.1

yurivict avatar Aug 23 '22 02:08 yurivict

@agcapps Do you know why did the 'test' target disappear? Is it documented anywhere how to run tests? The documentation here doesn't have such information.

yurivict avatar Sep 04 '22 05:09 yurivict

@yurivict , this is on my work queue. I just now clarified this by assigning it to myself.

At this point, before investigating, I will guess that you should clean out (delete) the compile directory, or possibly just CMakeCache.txt. Then please rerun CMake to make sure tests get enabled. As you may have seen, sometimes cached CMake variables interfere with generating the project.

agcapps avatar Sep 06 '22 15:09 agcapps

My builds are always very clean because I build in the FreeBSD ports framework and all source/build directories are recreated every time it builds.

yurivict avatar Sep 06 '22 15:09 yurivict

Please post sequence of commands to reproduce the error "error: unknown target 'test', did you mean 'quest'" starting from clean ports directory tree.

agcapps avatar Sep 06 '22 15:09 agcapps

Closing because I can't reproduce.

agcapps avatar May 10 '23 20:05 agcapps