1 set(CTEST_PROJECT_NAME "MoFEM")
2 set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
3 set(CTEST_BUILD_CONFIGURATION "Debug")
5 ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
7 find_program(CTEST_COVERAGE_COMMAND NAMES gcov)
8 find_program(CTEST_GIT_COMMAND NAMES git)
11 if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}")
12 set(INIT_REPOSITORY "YES")
14 CTEST_CHECKOUT_COMMAND
15 "${CTEST_GIT_COMMAND} clone --branch ${CTEST_BRANCH} --recurse-submodules https://bitbucket.org/likask/mofem-cephas.git ${GID_SOURCE_REPO}"
17 else(EXISTS "${CTEST_SOURCE_DIRECTORY}")
18 set(CTEST_CHECKOUT_COMMAND "${CTEST_GIT_COMMAND} submodule update")
20 set(CTEST_UPDATE_COMMAND "${CTEST_GIT_COMMAND}")
22 set(CTEST_CONFIGURE_COMMAND "\"${CMAKE_COMMAND}\" -DCMAKE_BUILD_TYPE:STRING=${CTEST_BUILD_CONFIGURATION}")
23 set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} ${CTEST_BUILD_OPTIONS} -DWITHCOVERAGE=ON")
24 set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} \"-G${CTEST_CMAKE_GENERATOR}\"")
25 set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} \"${CTEST_SOURCE_DIRECTORY}\"")
28 set(CTEST_TEST_TIMEOUT 1200)
30 # Perform the CDashTesting
31 ctest_start(${DASHBOARDTEST})
33 ctest_update(SOURCE "${GID_SOURCE_REPO}" RETURN_VALUE DOTEST)
37 message("Force Init Build")
38 else(NOT INIT_REPOSITORY)
39 message ( "Found ${DOTEST} updated files." )
43 message ("Force build")
46 set(CTEST_CUSTOM_MEMCHECK_IGNORE
47 ${CTEST_CUSTOM_MEMCHECK_IGNORE}
49 cubit_bc_atom_test_disp01_compare
50 cubit_bc_atom_test_force01_compare
51 cubit_bc_atom_test_velocity01_compare
52 cubit_bc_atom_test_accel01_compare
53 cubit_bc_atom_test_temper01_compare
54 cubit_bc_atom_test_pressure01_compare
55 cubit_bc_atom_test_heatflux01_compare
56 cubit_bc_atom_test_comb01_compare
57 cubit_bc_atom_test_bcoverlap01_compare
58 cubit_bc_atom_test_interf01_compare
59 cubit_bc_atom_test_mat_elastic_compare
60 cubit_bc_atom_test_mat_elastic_transiso_compare
61 cubit_bc_atom_test_mat_interf_compare
62 cubit_bc_atom_test_inlet_outlet_compare
63 cubit_meshset_loop_test_compare
65 mesh_refine_atom_test_compare
66 mesh_insert_interface_atom_test_compare
67 mesh_insert_T_interface_atom_test_compare
68 mesh_insert_T_4seasons_interface_atom_test_compare
69 forces_and_sources_getting_orders_indices_test_compare
70 forces_and_sources_getting_mult_H1_H1_test_compare
71 forces_and_sources_calculate_jacobian_test_compare
72 forces_and_sources_testing_volume_element_test_compare
73 forces_and_sources_testing_users_base_compare
74 forces_and_sources_getting_higher_order_skin_normals_atom_test_compare
75 forces_and_sources_testing_triangle_element_test_compare
76 forces_and_sources_testing_edge_element_test_compare
77 forces_and_sources_testing_vertex_element_test_compare
78 forces_and_sources_testing_flat_prism_element_test_compare
79 record_series_atom_test_compare
80 forces_and_sources_hcurl_approximation_functions_atom_compare
81 forces_and_sources_hdiv_approximation_functions_atom_compare
83 dm_build_partitioned_mesh_atom_compare
85 projection_from_10node_tet_atom_compare
88 if(${DOTEST} GREATER 0)
89 file(WRITE ${GID_SOURCE_REPO}/has_bin_build "1")
90 endif(${DOTEST} GREATER 0)
92 if(${DOTEST} GREATER 0)
95 if(CTEST_MEMORYCHECK_COMMAND)
97 endif(CTEST_MEMORYCHECK_COMMAND)
99 if(CTEST_COVERAGE_COMMAND)
100 ctest_coverage(QUIET)
101 endif(CTEST_COVERAGE_COMMAND)
103 endif(${DOTEST} GREATER 0)