summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Graphviz/set_node_prefix-check.cmake
diff options
context:
space:
mode:
authorCorentin Plouet <corentin@plouet.name>2019-10-08 02:45:30 (GMT)
committerCorentin Plouet <corentin@plouet.name>2019-10-08 02:45:56 (GMT)
commit553658393c0e775efdec6b29b69c1274fb771e83 (patch)
treed2b0e6774925a8d274600ee1ff825125b51292be /Tests/RunCMake/Graphviz/set_node_prefix-check.cmake
parent4c29297495b53e07f61a6de1f5f689ddd6bab7bd (diff)
downloadCMake-553658393c0e775efdec6b29b69c1274fb771e83.zip
CMake-553658393c0e775efdec6b29b69c1274fb771e83.tar.gz
CMake-553658393c0e775efdec6b29b69c1274fb771e83.tar.bz2
Graphviz: added test suite, fixes, enhancements
* Added a fairly comprehensive test suite * Separated the graph traversal logic from the Graphviz generation code by introducing a new class, cmLinkItemsGraphVisitor{.h,cxx} * Made the graph traversal logic less ad-hoc by using existing methods in the GlobalGenerator; this fixed a few bugs * Added support for new target types: custom targets, object and unknown libraries * Improved support for ALIAS libraries by showing the alias(es) in the graph * Introduced new flags to control those new libraries (consistent with existing flags) * Updated the documentation * Removed useless setting to set graph type in dot file * Improved the node/edge shapes (nicer, more consistent) * Added a legend to the graph * Some refactoring and cleanup of the Graphviz generation code * Added test and fix for issue 19746
Diffstat (limited to 'Tests/RunCMake/Graphviz/set_node_prefix-check.cmake')
-rw-r--r--Tests/RunCMake/Graphviz/set_node_prefix-check.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/Graphviz/set_node_prefix-check.cmake b/Tests/RunCMake/Graphviz/set_node_prefix-check.cmake
new file mode 100644
index 0000000..61e9b24
--- /dev/null
+++ b/Tests/RunCMake/Graphviz/set_node_prefix-check.cmake
@@ -0,0 +1,5 @@
+include(RunCMake)
+
+ensure_files_match(
+ ${RunCMake_TEST_SOURCE_DIR}/expected_outputs/dependency_graph_set_node_prefix.dot
+ ${RunCMake_TEST_BINARY_DIR}/generated_dependency_graph.dot)