Jamfile.v2 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. # Copyright (c) 2002 Trustees of Indiana University
  2. #
  3. # Distributed under the Boost Software License, Version 1.0.
  4. # (See accompanying file LICENSE_1_0.txt or copy at
  5. # http://www.boost.org/LICENSE_1_0.txt)
  6. # Define SGB (stanford graph base top level directory) and
  7. # LEDA (also top level directory) at the command line of jam using -s
  8. import modules ;
  9. import path ;
  10. path-constant TEST_DIR : . ;
  11. path-constant PLANAR_INPUT_FILES : ./planar_input_graphs ;
  12. path-constant CYCLE_RATIO_INPUT_FILE : ./cycle_ratio_s382.90.dot ;
  13. path-constant METIS_INPUT_FILE : ./weighted_graph.gr ;
  14. alias graph_test_regular :
  15. # test_graphs will eventually defined a framework for testing the structure
  16. # and implementation of graph data structures and adaptors.
  17. [ run test_graphs.cpp ]
  18. [ run index_graph.cpp ] # TODO: Make this part of the test_graphs framework
  19. [ run labeled_graph.cpp ]
  20. [ run finish_edge_bug.cpp ]
  21. [ run transitive_closure_test.cpp ]
  22. [ run transitive_closure_test2.cpp ]
  23. [ compile adj_list_cc.cpp ]
  24. #[ run adj_list_invalidation.cpp ]
  25. [ run adj_list_edge_list_set.cpp ]
  26. [ run adj_list_loops.cpp ]
  27. [ compile adj_matrix_cc.cpp ]
  28. [ run bfs.cpp ../../test/build//boost_test_exec_monitor ]
  29. [ compile bfs_cc.cpp ]
  30. [ run bellman-test.cpp ]
  31. [ run betweenness_centrality_test.cpp : 100 ]
  32. [ run bidir_remove_edge.cpp ]
  33. [ run bipartite_test.cpp ]
  34. [ run csr_graph_test.cpp : : : : : <variant>release ]
  35. [ run dag_longest_paths.cpp ]
  36. [ run dfs.cpp ../../test/build//boost_test_exec_monitor ]
  37. [ run undirected_dfs.cpp ../../test/build//boost_test_exec_monitor ]
  38. [ compile dfs_cc.cpp ]
  39. [ compile dijkstra_cc.cpp ]
  40. [ run dijkstra_heap_performance.cpp : 10000 ]
  41. [ run dijkstra_no_color_map_compare.cpp : 10000 ]
  42. [ run dominator_tree_test.cpp ]
  43. # Unused and deprecated.
  44. #[ run relaxed_heap_test.cpp : 5000 15000 ]
  45. [ compile edge_list_cc.cpp ]
  46. [ compile filtered_graph_cc.cpp ]
  47. [ run filter_graph_vp_test.cpp ]
  48. [ run generator_test.cpp ]
  49. [ run graph.cpp : : : <define>TEST=1 : graph_1 ]
  50. [ run graph.cpp : : : <define>TEST=2 : graph_2 ]
  51. [ run graph.cpp : : : <define>TEST=3 : graph_3 ]
  52. [ run graph.cpp : : : <define>TEST=4 : graph_4 ]
  53. [ run graph.cpp : : : <define>TEST=5 : graph_5 ]
  54. [ run graph.cpp : : : <define>TEST=6 : graph_6 ]
  55. [ run graph.cpp : : : <define>TEST=7 : graph_7 ]
  56. [ run graph.cpp : : : <define>TEST=8 : graph_8 ]
  57. [ run graph.cpp : : : <define>TEST=9 : graph_9 ]
  58. [ compile graph_concepts.cpp ]
  59. [ run graphviz_test.cpp
  60. /boost/test//boost_test_exec_monitor/<link>static
  61. ../build//boost_graph
  62. ../../regex/build//boost_regex : --log_level=all ]
  63. [ run metis_test.cpp : $(METIS_INPUT_FILE) ]
  64. [ run gursoy_atun_layout_test.cpp ]
  65. [ run layout_test.cpp : : : <test-info>always_show_run_output <toolset>intel:<debug-symbols>off ]
  66. [ run serialize.cpp
  67. ../../serialization/build//boost_serialization
  68. : : : ]
  69. [ compile reverse_graph_cc.cpp ]
  70. [ run sequential_vertex_coloring.cpp ]
  71. # TODO: Merge these into a single test framework.
  72. [ run subgraph.cpp ../../test/build//boost_test_exec_monitor ]
  73. [ run subgraph_bundled.cpp ]
  74. [ run subgraph_add.cpp ../../test/build//boost_unit_test_framework/<link>static : $(TEST_DIR) ]
  75. [ run subgraph_props.cpp ]
  76. [ run isomorphism.cpp ../../test/build//boost_test_exec_monitor ]
  77. [ run adjacency_matrix_test.cpp ]
  78. [ compile vector_graph_cc.cpp ]
  79. [ compile copy.cpp ]
  80. [ compile swap.cpp ]
  81. [ compile property_iter.cpp : <define>TEST=1 : property_iter_1 ]
  82. [ compile property_iter.cpp : <define>TEST=2 : property_iter_2 ]
  83. [ compile property_iter.cpp : <define>TEST=3 : property_iter_3 ]
  84. [ compile property_iter.cpp : <define>TEST=4 : property_iter_4 ]
  85. [ compile property_iter.cpp : <define>TEST=5 : property_iter_5 ]
  86. [ compile property_iter.cpp : <define>TEST=6 : property_iter_6 ]
  87. [ compile property_iter.cpp : <define>TEST=7 : property_iter_7 ]
  88. [ compile property_iter.cpp : <define>TEST=8 : property_iter_8 ]
  89. [ compile property_iter.cpp : <define>TEST=9 : property_iter_9 ]
  90. [ run bundled_properties.cpp ]
  91. [ run floyd_warshall_test.cpp ]
  92. [ run astar_search_test.cpp ]
  93. [ run biconnected_components_test.cpp ]
  94. [ run min_degree_empty.cpp ]
  95. [ run cuthill_mckee_ordering.cpp ]
  96. [ run king_ordering.cpp ]
  97. [ run matching_test.cpp ]
  98. [ run weighted_matching_test.cpp ]
  99. [ run max_flow_test.cpp ]
  100. [ run boykov_kolmogorov_max_flow_test.cpp ]
  101. [ run cycle_ratio_tests.cpp ../build//boost_graph ../../regex/build//boost_regex : $(CYCLE_RATIO_INPUT_FILE) ]
  102. [ run basic_planarity_test.cpp ]
  103. [ run make_connected_test.cpp ]
  104. [ run make_bicon_planar_test.cpp ]
  105. [ run make_maximal_planar_test.cpp ]
  106. [ run named_vertices_test.cpp ]
  107. [ run r_c_shortest_paths_test.cpp ]
  108. [ run rcsp_custom_vertex_id.cpp ]
  109. [ run is_straight_line_draw_test.cpp ]
  110. [ run metric_tsp_approx.cpp : metric_tsp_approx.graph ]
  111. [ compile dimacs.cpp ]
  112. [ run bron_kerbosch_all_cliques.cpp ]
  113. [ run tiernan_all_cycles.cpp ]
  114. [ run closeness_centrality.cpp ]
  115. [ run degree_centrality.cpp ]
  116. [ run mean_geodesic.cpp ]
  117. [ run eccentricity.cpp ]
  118. [ run clustering_coefficient.cpp ]
  119. [ run core_numbers_test.cpp ]
  120. [ run read_propmap.cpp ]
  121. [ run mcgregor_subgraphs_test.cpp ../build//boost_graph ]
  122. [ compile grid_graph_cc.cpp ]
  123. [ run grid_graph_test.cpp ]
  124. [ run incremental_components_test.cpp ]
  125. [ run two_graphs_common_spanning_trees_test.cpp ]
  126. [ run random_spanning_tree_test.cpp ../build//boost_graph ]
  127. [ run random_matching_test.cpp : 1000 1020 ]
  128. [ run graphml_test.cpp ../build//boost_graph : : "graphml_test.xml" ]
  129. [ run mas_test.cpp ../../test/build//boost_unit_test_framework/<link>static : $(TEST_DIR) ]
  130. [ run stoer_wagner_test.cpp ../../test/build//boost_unit_test_framework/<link>static : $(TEST_DIR) ]
  131. [ compile filtered_graph_properties_dijkstra.cpp ]
  132. [ run vf2_sub_graph_iso_test.cpp ]
  133. [ run vf2_sub_graph_iso_test_2.cpp ]
  134. [ run hawick_circuits.cpp ]
  135. [ run successive_shortest_path_nonnegative_weights_test.cpp ../../test/build//boost_unit_test_framework/<link>static ]
  136. [ run cycle_canceling_test.cpp ../../test/build//boost_unit_test_framework/<link>static ]
  137. [ run strong_components_test.cpp ]
  138. [ run find_flow_cost_bundled_properties_and_named_params_test.cpp ../../test/build//boost_unit_test_framework/<link>static ]
  139. [ run max_flow_algorithms_bundled_properties_and_named_params.cpp ../../test/build//boost_unit_test_framework/<link>static ]
  140. [ run delete_edge.cpp ]
  141. [ run johnson-test.cpp ]
  142. [ run lvalue_pmap.cpp ]
  143. ;
  144. alias graph_test_with_filesystem : :
  145. # The tests below started failing to compile for xcode with cxxstd=11
  146. # due to issues with constexpr ctors in Boost.Filesystem
  147. <target-os>darwin
  148. <cxxstd>11
  149. ;
  150. alias graph_test_with_filesystem :
  151. [ run all_planar_input_files_test.cpp
  152. ../../filesystem/build
  153. ../../system/build
  154. : $(PLANAR_INPUT_FILES) ]
  155. [ run parallel_edges_loops_test.cpp
  156. ../../filesystem/build
  157. ../../system/build
  158. : $(PLANAR_INPUT_FILES) ]
  159. ;
  160. test-suite graph_test :
  161. graph_test_regular
  162. graph_test_with_filesystem
  163. ;
  164. # Run SDB tests only when -sSDB= is set.
  165. local SDB = [ modules.peek : SDB ] ;
  166. if $(SDB)
  167. {
  168. local sdb-root = [ path.root [ path.make $(SDB) ] [ path.pwd ] ] ;
  169. compile stanford_graph_cc.cpp :
  170. <include>$(sdb-root) ;
  171. }
  172. # Run LEDA tests only when -sLEDA= is set.
  173. local LEDA = [ modules.peek : LEDA ] ;
  174. if $(LEDA)
  175. {
  176. local leda-root = [ path.root [ path.make $(LEDA) ] [ path.pwd ] ] ;
  177. local leda-include = [ path.join $(leda-root) incl ] ;
  178. compile leda_graph_cc.cpp :
  179. <include>$(leda-include) ;
  180. }
  181. build-project ../example ;