mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
CMake: Run pytest as part of CTest
This commit is contained in:
parent
29bc62bf9b
commit
4c8693f019
@ -107,6 +107,14 @@ if(BUILD_MODELS)
|
|||||||
DESTINATION share/panda3d)
|
DESTINATION share/panda3d)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(INTERROGATE_PYTHON_INTERFACE)
|
||||||
|
# If we built the Python interface, run the test suite. Note, we do NOT test
|
||||||
|
# for pytest before adding this test. If the user doesn't have pytest, we'd
|
||||||
|
# like for the tests to fail.
|
||||||
|
|
||||||
|
add_test(pytest "${PYTHON_EXECUTABLE}" -m pytest "${PROJECT_SOURCE_DIR}/tests")
|
||||||
|
endif()
|
||||||
|
|
||||||
# This bit is to generate the 'pandac' compatibility shim. It's deprecated now,
|
# This bit is to generate the 'pandac' compatibility shim. It's deprecated now,
|
||||||
# but in older versions of Panda3D, one would use
|
# but in older versions of Panda3D, one would use
|
||||||
# from pandac.PandaModules import *
|
# from pandac.PandaModules import *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user