Add gmxapi_pytest custom target to CMake `check` target.
authorM. Eric Irrgang <ericirrgang@gmail.com>
Fri, 26 Jul 2019 16:24:59 +0000 (19:24 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 8 Aug 2019 18:20:05 +0000 (20:20 +0200)
Automatically run pytest for the gmxapi Python package in the build tree
when GMX_PYTHON_PACKAGE=ON.

Refs #2765

Change-Id: I3f33b9903fc712d0c027810af6b6af605928f3ab

python_packaging/src/test/CMakeLists.txt

index 4279f96d307d063c6cf9753449d08908002fc8c1..65d55247fa37bbccdde174c2709b85ce1a354697 100644 (file)
@@ -70,3 +70,5 @@ add_custom_target(gmxapi_pytest
                   WORKING_DIRECTORY ${GMXAPI_PYTHON_STAGING_DIR})
 # The current test fixtures require the `gmx` tool-wrapper executable.
 add_dependencies(gmxapi_pytest gmx)
+
+add_dependencies(check gmxapi_pytest)