@@ -50,38 +50,6 @@ function( SUBMIT_TEST part )
5050 endif ()
5151endfunction ( SUBMIT_TEST part )
5252
53- # find number of processors, for faster builds
54- # from http://www.kitware.com/blog/home/post/63
55- if (NOT DEFINED PROCESSOR_COUNT)
56- # Unknown:
57- set (PROCESSOR_COUNT 0)
58-
59- # Linux:
60- set (cpuinfo_file "/proc/cpuinfo" )
61- if (EXISTS "${cpuinfo_file} " )
62- file (STRINGS "${cpuinfo_file} " procs REGEX "^processor.: [0-9]+$" )
63- list (LENGTH procs PROCESSOR_COUNT)
64- endif ()
65-
66- # Mac:
67- if (APPLE )
68- find_program (cmd_sys_pro "system_profiler" )
69- if (cmd_sys_pro)
70- execute_process (COMMAND ${cmd_sys_pro} OUTPUT_VARIABLE info )
71- string (REGEX REPLACE "^.*Total Number Of Cores: ([0-9]+).*$" "\\ 1"
72- PROCESSOR_COUNT "${info} " )
73- endif ()
74- endif ()
75-
76- # Windows:
77- if (WIN32 )
78- set (PROCESSOR_COUNT "$ENV{NUMBER_OF_PROCESSORS} " )
79- endif ()
80- endif ()
81-
82- set (CTEST_BUILD_FLAGS "-j${PROCESSOR_COUNT} " )
83-
84-
8553######################################################
8654##### To disable reporting of a set of tests, comment
8755##### out the SUBMIT_TEST line immediately following
@@ -94,29 +62,33 @@ set(CTEST_BUILD_FLAGS "-j${PROCESSOR_COUNT}")
9462ctest_start (Experimental )
9563ctest_empty_binary_directory (${CTEST_BINARY_DIRECTORY} )
9664
65+ file (WRITE "${CTEST_BINARY_DIRECTORY} /CTestCustom.cmake" "
66+ set( CTEST_CUSTOM_ERROR_EXCEPTION \" {standard input}:[0-9][0-9]*: WARNING: \" )
67+ " )
68+
9769ctest_configure ( BUILD "${CTEST_BINARY_DIRECTORY} " APPEND OPTIONS -DSCL_ENABLE_TESTING=ON )
9870SUBMIT_TEST ( Configure )
9971ctest_build ( BUILD "${CTEST_BINARY_DIRECTORY} " APPEND )
10072SUBMIT_TEST ( Build )
101- # ctest_memcheck( BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res PARALLEL_LEVEL ${PROCESSOR_COUNT} )
73+ # ctest_memcheck( BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res )
10274
10375if (NOT SKIP_TEST_UNITARY_SCHEMAS )
10476 ctest_test ( BUILD "${CTEST_BINARY_DIRECTORY} " APPEND
105- PARALLEL_LEVEL ${PROCESSOR_COUNT} INCLUDE_LABEL "unitary_schemas" )
77+ INCLUDE_LABEL "unitary_schemas" )
10678 SUBMIT_TEST ( Test )
10779endif ()
10880
10981if (NOT SKIP_CPP_TEST_SCHEMA_GEN )
11082 ctest_test ( BUILD "${CTEST_BINARY_DIRECTORY} " APPEND
111- PARALLEL_LEVEL ${PROCESSOR_COUNT} INCLUDE_LABEL "cpp_schema_gen" )
83+ INCLUDE_LABEL "cpp_schema_gen" )
11284 SUBMIT_TEST ( Test )
11385 if (NOT SKIP_CPP_TEST_SCHEMA_BUILD )
11486 ctest_test ( BUILD "${CTEST_BINARY_DIRECTORY} " APPEND
115- PARALLEL_LEVEL ${PROCESSOR_COUNT} INCLUDE_LABEL "cpp_schema_build" )
87+ INCLUDE_LABEL "cpp_schema_build" )
11688 SUBMIT_TEST ( Test )
11789 if (NOT SKIP_CPP_TEST_SCHEMA_RW )
11890 ctest_test ( BUILD "${CTEST_BINARY_DIRECTORY} " APPEND
119- PARALLEL_LEVEL ${PROCESSOR_COUNT} INCLUDE_LABEL "cpp_schema_rw" )
91+ INCLUDE_LABEL "cpp_schema_rw" )
12092 SUBMIT_TEST ( Test )
12193 endif ()
12294 endif ()
@@ -125,17 +97,17 @@ endif()
12597if (NOT SKIP_TEST_EXCHANGE_FILE )
12698 if ( SKIP_CPP_TEST_SCHEMA_BUILD )
12799 ctest_test ( BUILD "${CTEST_BINARY_DIRECTORY} " APPEND
128- PARALLEL_LEVEL ${PROCESSOR_COUNT} INCLUDE "build_cpp_sdai_AP214E3_2010" )
100+ INCLUDE "build_cpp_sdai_AP214E3_2010" )
129101 SUBMIT_TEST ( Test )
130102 endif ()
131103 ctest_test ( BUILD "${CTEST_BINARY_DIRECTORY} " APPEND
132- PARALLEL_LEVEL ${PROCESSOR_COUNT} INCLUDE_LABEL "exchange_file" )
104+ INCLUDE_LABEL "exchange_file" )
133105 SUBMIT_TEST ( Test )
134106endif ()
135107
136108if (NOT SKIP_TEST_CPP_SCHEMA_SPECIFIC )
137109 ctest_test ( BUILD "${CTEST_BINARY_DIRECTORY} " APPEND
138- PARALLEL_LEVEL ${PROCESSOR_COUNT} INCLUDE_LABEL "cpp_schema_specific" )
110+ INCLUDE_LABEL "cpp_schema_specific" )
139111 SUBMIT_TEST ( Test )
140112endif ()
141113
0 commit comments