On Thu, Nov 19, 2015 at 5:05 PM, Tom Browder <tom.brow...@gmail.com> wrote:
> When scanning the top-level CMakeLists.tx file (rev 66618), I saw an
> entry to add the GNU standard "make check" target, so I gave it a try.
> I assumed it would be an alias for "make test" but the tests run were
> not the same--a bit confusing!
>
>   make test: 758 tests (2 failed)
>
>   make check: 738 tests (0 failed)

Tom,

make check is in fact deliberately *not* an alias for make test, for
two reasons.

The first is that not all CTest tests defined in BRL-CAD are expected
to be working.  For example, there are some regression tests that are
in various stages of development that are known not to be ready, but
where the CTest bits are hooked up for testing.  make check runs only
those that "should" work.

The second is that make test as defined by CMake does *not* build the
dependencies for a given test - for example, a regression test that
depends on mged that is run by make test will not first check to be
sure that mged was actually built.  make check does check.  So, while
you can't run "make test" to build just what is needed to run the
tests and the tests themselves (what I think of as the "minimal test
build") make check does allow for that.

Cheers,
CY

------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to