This commits add the Python based regression tests to CMake, after
Graphviz has been build and installed, it can be executed by running
`ctest` in the build directory.
option(with_smyrna "SMYRNA large graph viewer (disabled by default - experimental)" OFF)
if (enable_ltdl)
- add_definitions(-DENABLE_LTDL)
+ add_definitions(-DENABLE_LTDL)
endif (enable_ltdl)
if (with_digcola)
add_subdirectory(lib)
add_subdirectory(plugin)
add_subdirectory(cmd)
+
+enable_testing()
+add_subdirectory(tests)
--- /dev/null
+find_package(PythonInterp)
+
+if (PYTHONINTERP_FOUND)
+ add_subdirectory(regression_tests)
+else ()
+ message(WARNING "Python interperter not found, required for regression tests.")
+endif ()
--- /dev/null
+add_subdirectory(shapes)
--- /dev/null
+add_test(
+ NAME shapes
+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+ COMMAND ${PYTHON_EXECUTABLE} shapes.py
+)