From 73034c7e9ce86c6b2bc9614522759d22a4a491ca Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 15 Jun 2004 11:37:57 +0000 Subject: [PATCH] Updated config test system to use new .ipp file extensions. All dependencies on Boost.Test have also been removed for the basic tests. [SVN r23102] --- configure | 19 +- test/Jamfile | 6 +- test/config_test.cpp | 663 +++++++++++++++++++++-------- test/has_2arg_use_facet_fail.cpp | 10 +- test/has_2arg_use_facet_pass.cpp | 10 +- test/has_bethreads_fail.cpp | 10 +- test/has_bethreads_pass.cpp | 10 +- test/has_clock_gettime_fail.cpp | 10 +- test/has_clock_gettime_pass.cpp | 10 +- test/has_dirent_h_fail.cpp | 10 +- test/has_dirent_h_pass.cpp | 10 +- test/has_ftime_fail.cpp | 10 +- test/has_ftime_pass.cpp | 10 +- test/has_gettimeofday_fail.cpp | 10 +- test/has_gettimeofday_pass.cpp | 10 +- test/has_hash_fail.cpp | 10 +- test/has_hash_pass.cpp | 10 +- test/has_long_long_fail.cpp | 10 +- test/has_long_long_pass.cpp | 10 +- test/has_macro_use_facet_fail.cpp | 10 +- test/has_macro_use_facet_pass.cpp | 10 +- test/has_ms_int64_fail.cpp | 10 +- test/has_ms_int64_pass.cpp | 10 +- test/has_nanosleep_fail.cpp | 10 +- test/has_nanosleep_pass.cpp | 10 +- test/has_nl_types_h_fail.cpp | 10 +- test/has_nl_types_h_pass.cpp | 10 +- test/has_nrvo_fail.cpp | 10 +- test/has_nrvo_pass.cpp | 10 +- test/has_part_alloc_fail.cpp | 10 +- test/has_part_alloc_pass.cpp | 10 +- test/has_pthread_delay_np_fail.cpp | 10 +- test/has_pthread_delay_np_pass.cpp | 10 +- test/has_pthread_ma_st_fail.cpp | 10 +- test/has_pthread_ma_st_pass.cpp | 10 +- test/has_pthread_yield_fail.cpp | 10 +- test/has_pthread_yield_pass.cpp | 10 +- test/has_pthreads_fail.cpp | 10 +- test/has_pthreads_pass.cpp | 10 +- test/has_sched_yield_fail.cpp | 10 +- test/has_sched_yield_pass.cpp | 10 +- test/has_sgi_type_traits_fail.cpp | 10 +- test/has_sgi_type_traits_pass.cpp | 10 +- test/has_sigaction_fail.cpp | 10 +- test/has_sigaction_pass.cpp | 10 +- test/has_slist_fail.cpp | 10 +- test/has_slist_pass.cpp | 10 +- test/has_stdint_h_fail.cpp | 10 +- test/has_stdint_h_pass.cpp | 10 +- test/has_stlp_use_facet_fail.cpp | 10 +- test/has_stlp_use_facet_pass.cpp | 10 +- test/has_unistd_h_fail.cpp | 10 +- test/has_unistd_h_pass.cpp | 10 +- test/has_vc6_mem_templ_fail.cpp | 10 +- test/has_vc6_mem_templ_pass.cpp | 10 +- test/has_vc_iterator_fail.cpp | 10 +- test/has_vc_iterator_pass.cpp | 10 +- test/has_winthreads_fail.cpp | 10 +- test/has_winthreads_pass.cpp | 10 +- test/no_arg_dep_lookup_fail.cpp | 10 +- test/no_arg_dep_lookup_pass.cpp | 10 +- test/no_array_type_spec_fail.cpp | 10 +- test/no_array_type_spec_pass.cpp | 10 +- test/no_auto_ptr_fail.cpp | 10 +- test/no_auto_ptr_pass.cpp | 10 +- test/no_bcb_partial_spec_fail.cpp | 10 +- test/no_bcb_partial_spec_pass.cpp | 10 +- test/no_ctype_functions_fail.cpp | 10 +- test/no_ctype_functions_pass.cpp | 10 +- test/no_cv_spec_fail.cpp | 10 +- test/no_cv_spec_pass.cpp | 10 +- test/no_cv_void_spec_fail.cpp | 10 +- test/no_cv_void_spec_pass.cpp | 10 +- test/no_cwchar_fail.cpp | 10 +- test/no_cwchar_pass.cpp | 10 +- test/no_cwctype_fail.cpp | 10 +- test/no_cwctype_pass.cpp | 10 +- test/no_ded_typename_fail.cpp | 10 +- test/no_ded_typename_pass.cpp | 10 +- test/no_dep_nested_class_fail.cpp | 10 +- test/no_dep_nested_class_pass.cpp | 10 +- test/no_dep_val_param_fail.cpp | 10 +- test/no_dep_val_param_pass.cpp | 10 +- test/no_excep_std_fail.cpp | 10 +- test/no_excep_std_pass.cpp | 10 +- test/no_exceptions_fail.cpp | 10 +- test/no_exceptions_pass.cpp | 10 +- test/no_exp_func_tem_arg_fail.cpp | 10 +- test/no_exp_func_tem_arg_pass.cpp | 10 +- test/no_func_tmp_order_fail.cpp | 10 +- test/no_func_tmp_order_pass.cpp | 10 +- test/no_i64_limits_fail.cpp | 10 +- test/no_i64_limits_pass.cpp | 10 +- test/no_inline_memb_init_fail.cpp | 10 +- test/no_inline_memb_init_pass.cpp | 10 +- test/no_integral_int64_t_fail.cpp | 10 +- test/no_integral_int64_t_pass.cpp | 10 +- test/no_iter_construct_fail.cpp | 10 +- test/no_iter_construct_pass.cpp | 10 +- test/no_limits_const_exp_fail.cpp | 10 +- test/no_limits_const_exp_pass.cpp | 10 +- test/no_limits_fail.cpp | 10 +- test/no_limits_pass.cpp | 10 +- test/no_ll_limits_fail.cpp | 10 +- test/no_ll_limits_pass.cpp | 10 +- test/no_mem_func_spec_fail.cpp | 10 +- test/no_mem_func_spec_pass.cpp | 10 +- test/no_mem_tem_keyword_fail.cpp | 10 +- test/no_mem_tem_keyword_pass.cpp | 10 +- test/no_mem_templ_frnds_fail.cpp | 10 +- test/no_mem_templ_frnds_pass.cpp | 10 +- test/no_mem_templates_fail.cpp | 10 +- test/no_mem_templates_pass.cpp | 10 +- test/no_ops_in_namespace_fail.cpp | 10 +- test/no_ops_in_namespace_pass.cpp | 10 +- test/no_partial_spec_fail.cpp | 10 +- test/no_partial_spec_pass.cpp | 10 +- test/no_priv_aggregate_fail.cpp | 10 +- test/no_priv_aggregate_pass.cpp | 10 +- test/no_ptr_mem_const_fail.cpp | 10 +- test/no_ptr_mem_const_pass.cpp | 10 +- test/no_ret_det_fail.cpp | 10 +- test/no_ret_det_pass.cpp | 10 +- test/no_sfinae_fail.cpp | 10 +- test/no_sfinae_pass.cpp | 10 +- test/no_sstream_fail.cpp | 10 +- test/no_sstream_pass.cpp | 10 +- test/no_std_allocator_fail.cpp | 10 +- test/no_std_allocator_pass.cpp | 10 +- test/no_std_distance_fail.cpp | 10 +- test/no_std_distance_pass.cpp | 10 +- test/no_std_iter_traits_fail.cpp | 10 +- test/no_std_iter_traits_pass.cpp | 10 +- test/no_std_iterator_fail.cpp | 10 +- test/no_std_iterator_pass.cpp | 10 +- test/no_std_locale_fail.cpp | 10 +- test/no_std_locale_pass.cpp | 10 +- test/no_std_messages_fail.cpp | 10 +- test/no_std_messages_pass.cpp | 10 +- test/no_std_min_max_fail.cpp | 10 +- test/no_std_min_max_pass.cpp | 10 +- test/no_std_oi_assign_fail.cpp | 10 +- test/no_std_oi_assign_pass.cpp | 10 +- test/no_std_use_facet_fail.cpp | 10 +- test/no_std_use_facet_pass.cpp | 10 +- test/no_std_wstreambuf_fail.cpp | 10 +- test/no_std_wstreambuf_pass.cpp | 10 +- test/no_std_wstring_fail.cpp | 10 +- test/no_std_wstring_pass.cpp | 10 +- test/no_stdc_namespace_fail.cpp | 10 +- test/no_stdc_namespace_pass.cpp | 10 +- test/no_swprintf_fail.cpp | 10 +- test/no_swprintf_pass.cpp | 10 +- test/no_template_template_fail.cpp | 10 +- test/no_template_template_pass.cpp | 10 +- test/no_using_breaks_adl_fail.cpp | 10 +- test/no_using_breaks_adl_pass.cpp | 10 +- test/no_using_decl_overld_fail.cpp | 10 +- test/no_using_decl_overld_pass.cpp | 10 +- test/no_using_template_fail.cpp | 10 +- test/no_using_template_pass.cpp | 10 +- test/no_void_returns_fail.cpp | 10 +- test/no_void_returns_pass.cpp | 10 +- test/no_wchar_t_fail.cpp | 10 +- test/no_wchar_t_pass.cpp | 10 +- test/options.jam | 2 +- tools/configure.in | 19 +- tools/generate | 80 ++-- 168 files changed, 1372 insertions(+), 1037 deletions(-) diff --git a/configure b/configure index ad2a4eff..16593837 100644 --- a/configure +++ b/configure @@ -2169,9 +2169,9 @@ fi # # enumerate test files and test each one: # -for file in $boost_base/libs/config/test/boost_no*.cxx; do +for file in $boost_base/libs/config/test/boost_no*.ipp; do - basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'` + basename=`echo $file | sed 's/.*boost_\(.*\)\.ipp/\1/'` macroname=`cat $file | grep '^//[] []*MACRO:' | sed 's/.*MACRO:[] []*\([]_A-Z0-9[]*\).*/\1/'` title=`cat $file | grep '^//[] []*TITLE:' | sed 's/.*TITLE:[] []*\([]^ [].*\)/\1/'` namespace=`echo $macroname | tr [:upper:] [:lower:]` @@ -2208,7 +2208,7 @@ cat >>conftest.$ac_ext <<_ACEOF #include "test.hpp" #ifndef $macroname -#include "boost_$basename.cxx" +#include "boost_$basename.ipp" #else namespace ${namespace} = empty_boost; #endif @@ -2267,7 +2267,7 @@ cat >>conftest.$ac_ext <<_ACEOF #include "test.hpp" #ifdef $macroname -#include "boost_$basename.cxx" +#include "boost_$basename.ipp" #else #error "this file should not compile" #endif @@ -2310,9 +2310,9 @@ done # # enumerate optional test files and test each one: # -for file in $boost_base/libs/config/test/boost_has*.cxx; do +for file in $boost_base/libs/config/test/boost_has*.ipp; do - basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'` + basename=`echo $file | sed 's/.*boost_\(.*\)\.ipp/\1/'` macroname=`cat $file | grep '^//[] []*MACRO:' | sed 's/.*MACRO:[] []*\([]_A-Z0-9[]*\).*/\1/'` title=`cat $file | grep '^//[] []*TITLE:' | sed 's/.*TITLE:[] []*\([]^ [].*\)/\1/'` namespace=`echo $macroname | tr [:upper:] [:lower:]` @@ -2344,7 +2344,7 @@ cat >>conftest.$ac_ext <<_ACEOF #include "test.hpp" #ifdef $macroname -#include "boost_$basename.cxx" +#include "boost_$basename.ipp" #else namespace ${namespace} = empty_boost; #endif @@ -2400,7 +2400,7 @@ cat >>conftest.$ac_ext <<_ACEOF #include "test.hpp" #ifndef $macroname -#include "boost_$basename.cxx" +#include "boost_$basename.ipp" #else #error "this file should not compile" #endif @@ -2462,7 +2462,7 @@ cat >>conftest.$ac_ext <<_ACEOF #include #include "test.hpp" -#include "boost_$basename.cxx" +#include "boost_$basename.ipp" int main(){ return ${namespace}::test(); } @@ -3336,5 +3336,6 @@ fi + diff --git a/test/Jamfile b/test/Jamfile index 24400273..c09533bb 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -1,7 +1,7 @@ # # Regression test Jamfile for boost configuration setup. # *** DO NOT EDIT THIS FILE BY HAND *** -# This file was automatically generated on Sat Dec 13 12:29:38 GMTST 2003, +# This file was automatically generated on Tue Jun 15 11:50:28 GMTST 2004, # by libs/config/tools/generate # # If you need to alter build preferences then set them in @@ -12,11 +12,9 @@ subproject libs/config/test ; import testing ./options ; run config_info.cpp