Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58794 - in sandbox/itl/libs/validate/test: . test_bit_collector_ test_collector_ test_interval_bitset_ test_itl_morphic_ test_itl_set_ test_map_copy_conformity_ test_map_order_ test_set_copy_conformity_ test_set_order_ test_signed_quantifier_ test_sorted_assoc_bitset_ test_sorted_assoc_bitset_back_ test_sorted_assoc_map_ test_sorted_assoc_map_back_ test_sorted_assoc_set_ test_sorted_assoc_set_back_ test_unsigned_quantifier_ test_val_relations_
From: afojgo_at_[hidden]
Date: 2010-01-07 18:17:50


Author: jofaber
Date: 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
New Revision: 58794
URL: http://svn.boost.org/trac/boost/changeset/58794

Log:
Modified LaBatea tests (libs/validate/test) to make them work with msvc in debug mode.
Text files modified:
   sandbox/itl/libs/validate/test/Jamfile.v2 | 16 ++++++++++++++--
   sandbox/itl/libs/validate/test/test_bit_collector_/test_bit_collector.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_collector_/test_collector.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_interval_bitset_/test_interval_bitset.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_itl_morphic_/test_itl_morphic.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_itl_set_/test_itl_set.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_map_copy_conformity_/test_map_copy_conformity.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_map_order_/test_map_order.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_set_copy_conformity_/test_set_copy_conformity.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_set_order_/test_set_order.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_signed_quantifier_/test_signed_quantifier.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_sorted_assoc_bitset_/test_sorted_assoc_bitset.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_sorted_assoc_bitset_back_/test_sorted_assoc_bitset_back.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_sorted_assoc_map_/test_sorted_assoc_map.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_sorted_assoc_map_back_/test_sorted_assoc_map_back.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_sorted_assoc_set_/test_sorted_assoc_set.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_sorted_assoc_set_back_/test_sorted_assoc_set_back.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_unsigned_quantifier_/test_unsigned_quantifier.cpp | 4 ++++
   sandbox/itl/libs/validate/test/test_val_relations_/test_val_relations.cpp | 4 ++++
   19 files changed, 86 insertions(+), 2 deletions(-)

Modified: sandbox/itl/libs/validate/test/Jamfile.v2
==============================================================================
--- sandbox/itl/libs/validate/test/Jamfile.v2 (original)
+++ sandbox/itl/libs/validate/test/Jamfile.v2 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -8,6 +8,18 @@
 
 project
     : requirements
+ <toolset>msvc:<warnings>all # == /W4
+ <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
+ <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
+ <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
+ <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
+
+ #-------------------------------------------------------------------------
+ # LaBatea generates large obj files for some test programs e.g.
+ # test_map_order: For that we need flag /bigobj
+ #-------------------------------------------------------------------------
+ <toolset>msvc:<cxxflags>/bigobj # Via metaprogramming LaBatea generates bigobjs.
+
       <library>/boost/test//boost_unit_test_framework
       <library>/boost/date_time//boost_date_time
       <link>static
@@ -45,10 +57,10 @@
       [ run test_set_order_/test_set_order.cpp ../src/gentor/gentorprofile.cpp ]
       
       # msvc9 compilation time:
- # [ run test_map_order_/test_map_order.cpp ../src/gentor/gentorprofile.cpp ]
+ [ run test_map_order_/test_map_order.cpp ../src/gentor/gentorprofile.cpp ]
             
       # msvc9 compilation time:
- # [ run test_itl_morphic_/test_itl_morphic.cpp ../src/gentor/gentorprofile.cpp ]
+ [ run test_itl_morphic_/test_itl_morphic.cpp ../src/gentor/gentorprofile.cpp ]
       
       # msvc9 compilation time: 2:36
       # [ run test_signed_quantifier_/test_signed_quantifier.cpp ../src/gentor/gentorprofile.cpp ]

Modified: sandbox/itl/libs/validate/test/test_bit_collector_/test_bit_collector.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_bit_collector_/test_bit_collector.cpp (original)
+++ sandbox/itl/libs/validate/test/test_bit_collector_/test_bit_collector.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_bit_collector)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     bit_collector_driver validater;
     GentorProfileSgl::it()->set_std_profile(12,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_collector_/test_collector.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_collector_/test_collector.cpp (original)
+++ sandbox/itl/libs/validate/test/test_collector_/test_collector.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_collector)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     collector_driver validater;
     GentorProfileSgl::it()->set_std_profile(6,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     //validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_interval_bitset_/test_interval_bitset.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_interval_bitset_/test_interval_bitset.cpp (original)
+++ sandbox/itl/libs/validate/test/test_interval_bitset_/test_interval_bitset.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_interval_bitset)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     interval_bitset_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     //validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_itl_morphic_/test_itl_morphic.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_itl_morphic_/test_itl_morphic.cpp (original)
+++ sandbox/itl/libs/validate/test/test_itl_morphic_/test_itl_morphic.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_itl_morphic)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     itl_morphic_driver validater;
     GentorProfileSgl::it()->set_std_profile(16,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_itl_set_/test_itl_set.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_itl_set_/test_itl_set.cpp (original)
+++ sandbox/itl/libs/validate/test/test_itl_set_/test_itl_set.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_itl_set)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     itl_set_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_map_copy_conformity_/test_map_copy_conformity.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_map_copy_conformity_/test_map_copy_conformity.cpp (original)
+++ sandbox/itl/libs/validate/test/test_map_copy_conformity_/test_map_copy_conformity.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_map_copy_conformity)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     map_copy_conformity_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_map_order_/test_map_order.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_map_order_/test_map_order.cpp (original)
+++ sandbox/itl/libs/validate/test/test_map_order_/test_map_order.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_map_order)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     map_order_driver validater;
     GentorProfileSgl::it()->set_std_profile(16,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_set_copy_conformity_/test_set_copy_conformity.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_set_copy_conformity_/test_set_copy_conformity.cpp (original)
+++ sandbox/itl/libs/validate/test/test_set_copy_conformity_/test_set_copy_conformity.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_set_copy_conformity)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     set_copy_conformity_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_set_order_/test_set_order.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_set_order_/test_set_order.cpp (original)
+++ sandbox/itl/libs/validate/test/test_set_order_/test_set_order.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_set_order)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     set_order_driver validater;
     GentorProfileSgl::it()->set_std_profile(16,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_signed_quantifier_/test_signed_quantifier.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_signed_quantifier_/test_signed_quantifier.cpp (original)
+++ sandbox/itl/libs/validate/test/test_signed_quantifier_/test_signed_quantifier.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_signed_quantifier)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     signed_quantifier_driver validater;
     GentorProfileSgl::it()->set_std_profile(16,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_sorted_assoc_bitset_/test_sorted_assoc_bitset.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_sorted_assoc_bitset_/test_sorted_assoc_bitset.cpp (original)
+++ sandbox/itl/libs/validate/test/test_sorted_assoc_bitset_/test_sorted_assoc_bitset.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_sorted_associative_bitset)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     sorted_associative_bitset_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_sorted_assoc_bitset_back_/test_sorted_assoc_bitset_back.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_sorted_assoc_bitset_back_/test_sorted_assoc_bitset_back.cpp (original)
+++ sandbox/itl/libs/validate/test/test_sorted_assoc_bitset_back_/test_sorted_assoc_bitset_back.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_sorted_associative_bitset_back)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     sorted_associative_bitset_back_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_sorted_assoc_map_/test_sorted_assoc_map.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_sorted_assoc_map_/test_sorted_assoc_map.cpp (original)
+++ sandbox/itl/libs/validate/test/test_sorted_assoc_map_/test_sorted_assoc_map.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_sorted_associative_map)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     sorted_associative_map_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_sorted_assoc_map_back_/test_sorted_assoc_map_back.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_sorted_assoc_map_back_/test_sorted_assoc_map_back.cpp (original)
+++ sandbox/itl/libs/validate/test/test_sorted_assoc_map_back_/test_sorted_assoc_map_back.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_sorted_associative_map_back)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     sorted_associative_map_back_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_sorted_assoc_set_/test_sorted_assoc_set.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_sorted_assoc_set_/test_sorted_assoc_set.cpp (original)
+++ sandbox/itl/libs/validate/test/test_sorted_assoc_set_/test_sorted_assoc_set.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_sorted_associative_set)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     sorted_associative_set_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_sorted_assoc_set_back_/test_sorted_assoc_set_back.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_sorted_assoc_set_back_/test_sorted_assoc_set_back.cpp (original)
+++ sandbox/itl/libs/validate/test/test_sorted_assoc_set_back_/test_sorted_assoc_set_back.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_sorted_associative_set_back)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     sorted_associative_set_back_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_unsigned_quantifier_/test_unsigned_quantifier.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_unsigned_quantifier_/test_unsigned_quantifier.cpp (original)
+++ sandbox/itl/libs/validate/test/test_unsigned_quantifier_/test_unsigned_quantifier.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_unsigned_quantifier)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     unsigned_quantifier_driver validater;
     GentorProfileSgl::it()->set_std_profile(16,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 

Modified: sandbox/itl/libs/validate/test/test_val_relations_/test_val_relations.cpp
==============================================================================
--- sandbox/itl/libs/validate/test/test_val_relations_/test_val_relations.cpp (original)
+++ sandbox/itl/libs/validate/test/test_val_relations_/test_val_relations.cpp 2010-01-07 18:17:48 EST (Thu, 07 Jan 2010)
@@ -20,6 +20,9 @@
 
 BOOST_AUTO_TEST_CASE(test_validate_itl_val_relations)
 {
+#ifdef _DEBUG
+ cout << "Run validate/tests in release mode only.\n";
+#else
     itl_relations_driver validater;
     GentorProfileSgl::it()->set_std_profile(20,1);
     //GentorProfileSgl::it()->report_profile();
@@ -27,5 +30,6 @@
     validater.set_information_level(inform::never);
 
     BOOST_CHECK_EQUAL(validater.validate(), true);
+#endif
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk