Parcourir la source

ENH: Renamed kwsysPlatformCxxTests to kwsysPlatformTests and generalized it for multiple language tests (C and CXX).

Brad King il y a 19 ans
Parent
commit
6c19d3a862
1 fichiers modifiés avec 21 ajouts et 21 suppressions
  1. 21 21
      bootstrap

+ 21 - 21
bootstrap

@@ -865,7 +865,7 @@ KWSYS_STL_STRING_HAVE_OSTREAM=1
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAVE_STD" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAVE_STD" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_STL_HAVE_STD=1
   KWSYS_STL_HAVE_STD=1
   echo "${cmake_cxx_compiler} has STL in std:: namespace"
   echo "${cmake_cxx_compiler} has STL in std:: namespace"
 else
 else
@@ -874,7 +874,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_IOS_USE_ANSI" \
   "${cmake_cxx_flags} -DTEST_KWSYS_IOS_USE_ANSI" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_IOS_USE_ANSI=1
   KWSYS_IOS_USE_ANSI=1
   echo "${cmake_cxx_compiler} has ANSI streams"
   echo "${cmake_cxx_compiler} has ANSI streams"
 else
 else
@@ -884,7 +884,7 @@ fi
 if [ "x$KWSYS_IOS_USE_ANSI" = "x1" ]; then
 if [ "x$KWSYS_IOS_USE_ANSI" = "x1" ]; then
   if cmake_try_run "${cmake_cxx_compiler}" \
   if cmake_try_run "${cmake_cxx_compiler}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_IOS_HAVE_STD" \
     "${cmake_cxx_flags} -DTEST_KWSYS_IOS_HAVE_STD" \
-    "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+    "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
     KWSYS_IOS_HAVE_STD=1
     KWSYS_IOS_HAVE_STD=1
     echo "${cmake_cxx_compiler} has streams in std:: namespace"
     echo "${cmake_cxx_compiler} has streams in std:: namespace"
   else
   else
@@ -892,7 +892,7 @@ if [ "x$KWSYS_IOS_USE_ANSI" = "x1" ]; then
   fi
   fi
   if cmake_try_run "${cmake_cxx_compiler}" \
   if cmake_try_run "${cmake_cxx_compiler}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_IOS_USE_SSTREAM" \
     "${cmake_cxx_flags} -DTEST_KWSYS_IOS_USE_SSTREAM" \
-    "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+    "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
     KWSYS_IOS_USE_SSTREAM=1
     KWSYS_IOS_USE_SSTREAM=1
     echo "${cmake_cxx_compiler} has sstream"
     echo "${cmake_cxx_compiler} has sstream"
   else
   else
@@ -903,7 +903,7 @@ fi
 if [ "x$KWSYS_IOS_USE_SSTREAM" = "x0" ]; then
 if [ "x$KWSYS_IOS_USE_SSTREAM" = "x0" ]; then
   if cmake_try_run "${cmake_cxx_compiler}" \
   if cmake_try_run "${cmake_cxx_compiler}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_IOS_USE_STRSTREAM_H" \
     "${cmake_cxx_flags} -DTEST_KWSYS_IOS_USE_STRSTREAM_H" \
-    "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+    "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
     KWSYS_IOS_USE_STRSTREAM_H=1
     KWSYS_IOS_USE_STRSTREAM_H=1
     echo "${cmake_cxx_compiler} has strstream.h"
     echo "${cmake_cxx_compiler} has strstream.h"
   else
   else
@@ -912,7 +912,7 @@ if [ "x$KWSYS_IOS_USE_SSTREAM" = "x0" ]; then
   if [ "x$KWSYS_IOS_USE_STRSTREAM_H" = "x0" ]; then
   if [ "x$KWSYS_IOS_USE_STRSTREAM_H" = "x0" ]; then
     if cmake_try_run "${cmake_cxx_compiler}" \
     if cmake_try_run "${cmake_cxx_compiler}" \
       "${cmake_cxx_flags} -DTEST_KWSYS_IOS_USE_STRSTREA_H" \
       "${cmake_cxx_flags} -DTEST_KWSYS_IOS_USE_STRSTREA_H" \
-      "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+      "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
       KWSYS_IOS_USE_STRSTREA_H=1
       KWSYS_IOS_USE_STRSTREA_H=1
       echo "${cmake_cxx_compiler} has strstrea.h"
       echo "${cmake_cxx_compiler} has strstrea.h"
     else
     else
@@ -923,7 +923,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_STRING_HAVE_NEQ_CHAR -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_STRING_HAVE_NEQ_CHAR -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_STL_STRING_HAVE_NEQ_CHAR=1
   KWSYS_STL_STRING_HAVE_NEQ_CHAR=1
   echo "${cmake_cxx_compiler} has operator!=(string, char*)"
   echo "${cmake_cxx_compiler} has operator!=(string, char*)"
 else
 else
@@ -932,7 +932,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ITERATOR_TRAITS -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ITERATOR_TRAITS -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_STL_HAS_ITERATOR_TRAITS=1
   KWSYS_STL_HAS_ITERATOR_TRAITS=1
   echo "${cmake_cxx_compiler} has stl iterator_traits"
   echo "${cmake_cxx_compiler} has stl iterator_traits"
 else
 else
@@ -942,7 +942,7 @@ fi
 if [ "x${KWSYS_STL_HAS_ITERATOR_TRAITS}" = "x0" ]; then
 if [ "x${KWSYS_STL_HAS_ITERATOR_TRAITS}" = "x0" ]; then
   if cmake_try_run "${cmake_cxx_compiler}" \
   if cmake_try_run "${cmake_cxx_compiler}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ITERATOR_CATEGORY -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ITERATOR_CATEGORY -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
-    "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+    "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
     KWSYS_STL_HAS_ITERATOR_CATEGORY=1
     KWSYS_STL_HAS_ITERATOR_CATEGORY=1
     echo "${cmake_cxx_compiler} has old iterator_category"
     echo "${cmake_cxx_compiler} has old iterator_category"
   else
   else
@@ -951,7 +951,7 @@ if [ "x${KWSYS_STL_HAS_ITERATOR_TRAITS}" = "x0" ]; then
   if [ "x${KWSYS_STL_HAS_ITERATOR_CATEGORY}" = "x0" ]; then
   if [ "x${KWSYS_STL_HAS_ITERATOR_CATEGORY}" = "x0" ]; then
     if cmake_try_run "${cmake_cxx_compiler}" \
     if cmake_try_run "${cmake_cxx_compiler}" \
       "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS___ITERATOR_CATEGORY -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
       "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS___ITERATOR_CATEGORY -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
-      "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+      "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
       KWSYS_STL_HAS___ITERATOR_CATEGORY=1
       KWSYS_STL_HAS___ITERATOR_CATEGORY=1
       echo "${cmake_cxx_compiler} has old __iterator_category"
       echo "${cmake_cxx_compiler} has old __iterator_category"
     else
     else
@@ -962,7 +962,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_TEMPLATE -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_TEMPLATE -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_STL_HAS_ALLOCATOR_TEMPLATE=1
   KWSYS_STL_HAS_ALLOCATOR_TEMPLATE=1
   echo "${cmake_cxx_compiler} has standard template allocator"
   echo "${cmake_cxx_compiler} has standard template allocator"
 else
 else
@@ -972,7 +972,7 @@ fi
 if [ "x${KWSYS_STL_HAS_ALLOCATOR_TEMPLATE}" = "x1" ]; then
 if [ "x${KWSYS_STL_HAS_ALLOCATOR_TEMPLATE}" = "x1" ]; then
   if cmake_try_run "${cmake_cxx_compiler}" \
   if cmake_try_run "${cmake_cxx_compiler}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_REBIND -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_REBIND -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
-    "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+    "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
     KWSYS_STL_HAS_ALLOCATOR_REBIND=1
     KWSYS_STL_HAS_ALLOCATOR_REBIND=1
     echo "${cmake_cxx_compiler} has allocator<>::rebind<>"
     echo "${cmake_cxx_compiler} has allocator<>::rebind<>"
   else
   else
@@ -981,7 +981,7 @@ if [ "x${KWSYS_STL_HAS_ALLOCATOR_TEMPLATE}" = "x1" ]; then
 
 
   if cmake_try_run "${cmake_cxx_compiler}" \
   if cmake_try_run "${cmake_cxx_compiler}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
-    "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+    "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
     KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT=1
     KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT=1
     echo "${cmake_cxx_compiler} has non-standard allocator<>::max_size argument"
     echo "${cmake_cxx_compiler} has non-standard allocator<>::max_size argument"
   else
   else
@@ -990,7 +990,7 @@ if [ "x${KWSYS_STL_HAS_ALLOCATOR_TEMPLATE}" = "x1" ]; then
 else
 else
   if cmake_try_run "${cmake_cxx_compiler}" \
   if cmake_try_run "${cmake_cxx_compiler}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
     "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
-    "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+    "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
     KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE=1
     KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE=1
     echo "${cmake_cxx_compiler} has old non-template allocator"
     echo "${cmake_cxx_compiler} has old non-template allocator"
   else
   else
@@ -1000,7 +1000,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_OBJECTS -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAS_ALLOCATOR_OBJECTS -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_STL_HAS_ALLOCATOR_OBJECTS=1
   KWSYS_STL_HAS_ALLOCATOR_OBJECTS=1
   echo "${cmake_cxx_compiler} has stl containers supporting allocator objects"
   echo "${cmake_cxx_compiler} has stl containers supporting allocator objects"
 else
 else
@@ -1009,7 +1009,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_CSTDDEF" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_CSTDDEF" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_CXX_HAS_CSTDDEF=1
   KWSYS_CXX_HAS_CSTDDEF=1
   echo "${cmake_cxx_compiler} has header cstddef"
   echo "${cmake_cxx_compiler} has header cstddef"
 else
 else
@@ -1018,7 +1018,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   echo "${cmake_cxx_compiler} does not require template friends to use <>"
   echo "${cmake_cxx_compiler} does not require template friends to use <>"
 else
 else
   KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS=1
   KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS=1
@@ -1027,7 +1027,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_MEMBER_TEMPLATES" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_MEMBER_TEMPLATES" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_CXX_HAS_MEMBER_TEMPLATES=1
   KWSYS_CXX_HAS_MEMBER_TEMPLATES=1
   echo "${cmake_cxx_compiler} supports member templates"
   echo "${cmake_cxx_compiler} supports member templates"
 else
 else
@@ -1036,7 +1036,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_FULL_SPECIALIZATION" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_FULL_SPECIALIZATION" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_CXX_HAS_FULL_SPECIALIZATION=1
   KWSYS_CXX_HAS_FULL_SPECIALIZATION=1
   echo "${cmake_cxx_compiler} has standard template specialization syntax"
   echo "${cmake_cxx_compiler} has standard template specialization syntax"
 else
 else
@@ -1045,7 +1045,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP" \
   "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP=1
   KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP=1
   echo "${cmake_cxx_compiler} has argument dependent lookup"
   echo "${cmake_cxx_compiler} has argument dependent lookup"
 else
 else
@@ -1054,7 +1054,7 @@ fi
 
 
 if cmake_try_run "${cmake_cxx_compiler}" \
 if cmake_try_run "${cmake_cxx_compiler}" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STAT_HAS_ST_MTIM" \
   "${cmake_cxx_flags} -DTEST_KWSYS_STAT_HAS_ST_MTIM" \
-  "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then
+  "${cmake_source_dir}/Source/kwsys/kwsysPlatformTestsCXX.cxx" >> cmake_bootstrap.log 2>&1; then
   KWSYS_STAT_HAS_ST_MTIM=1
   KWSYS_STAT_HAS_ST_MTIM=1
   echo "${cmake_cxx_compiler} has struct stat with st_mtim member"
   echo "${cmake_cxx_compiler} has struct stat with st_mtim member"
 else
 else