Boost logo

Boost-Commit :

From: arseny.kapoulkine_at_[hidden]
Date: 2007-08-06 18:01:48


Author: zeux
Date: 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
New Revision: 38485
URL: http://svn.boost.org/trac/boost/changeset/38485

Log:
Finally fixed tests, now should compile on both Windows and Linux; build test/ for non-gmp version and test-gmp for gmp one
Added:
   sandbox/SOC/2007/bigint/libs/bigint/test-gmp/
   sandbox/SOC/2007/bigint/libs/bigint/test-gmp/Jamfile.v2 (contents, props changed)
   sandbox/SOC/2007/bigint/libs/bigint/test-gmp/gmp/
   sandbox/SOC/2007/bigint/libs/bigint/test-gmp/gmp/Jamfile.v2 (contents, props changed)
Removed:
   sandbox/SOC/2007/bigint/libs/bigint/build/
Text files modified:
   sandbox/SOC/2007/bigint/libs/bigint/test/arithmetics.cpp | 2 --
   sandbox/SOC/2007/bigint/libs/bigint/test/can_convert_to.cpp | 2 --
   sandbox/SOC/2007/bigint/libs/bigint/test/comparison.cpp | 2 --
   sandbox/SOC/2007/bigint/libs/bigint/test/functions.cpp | 2 --
   sandbox/SOC/2007/bigint/libs/bigint/test/number_conversion.cpp | 2 --
   sandbox/SOC/2007/bigint/libs/bigint/test/serialization.cpp | 2 --
   sandbox/SOC/2007/bigint/libs/bigint/test/stream.cpp | 2 --
   sandbox/SOC/2007/bigint/libs/bigint/test/string_conversion.cpp | 2 --
   sandbox/SOC/2007/bigint/libs/bigint/test/unary.cpp | 2 --
   9 files changed, 0 insertions(+), 18 deletions(-)

Added: sandbox/SOC/2007/bigint/libs/bigint/test-gmp/Jamfile.v2
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/bigint/libs/bigint/test-gmp/Jamfile.v2 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -0,0 +1,23 @@
+##############################################################################
+# Copyright 2007 Arseny Kapoulkine
+# Distributed under the Boost Software License, Version 1.0. (See accompany-
+# ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+##############################################################################
+
+import testing ;
+
+{
+ test-suite bigint
+ :
+ [ run ../test/number_conversion.cpp gmp//gmp : : : : ]
+ [ run ../test/string_conversion.cpp gmp//gmp : : : : ]
+ [ run ../test/can_convert_to.cpp gmp//gmp : : : : ]
+ [ run ../test/arithmetics.cpp gmp//gmp : : : : ]
+ [ run ../test/comparison.cpp gmp//gmp : : : : ]
+ [ run ../test/unary.cpp gmp//gmp : : : : ]
+ [ run ../test/stream.cpp gmp//gmp : : : : ]
+ [ run ../test/serialization.cpp ../../serialization/build//boost_serialization gmp//gmp : : : : ]
+ [ run ../test/functions.cpp gmp//gmp : : : : ]
+ ;
+}
+

Added: sandbox/SOC/2007/bigint/libs/bigint/test-gmp/gmp/Jamfile.v2
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/bigint/libs/bigint/test-gmp/gmp/Jamfile.v2 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -0,0 +1,2 @@
+lib gmp : : <name>gmp ;
+

Modified: sandbox/SOC/2007/bigint/libs/bigint/test/arithmetics.cpp
==============================================================================
--- sandbox/SOC/2007/bigint/libs/bigint/test/arithmetics.cpp (original)
+++ sandbox/SOC/2007/bigint/libs/bigint/test/arithmetics.cpp 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -21,8 +21,6 @@
 #include <boost/bigint/bigint_storage_vector.hpp>
 #include <boost/bigint/bigint_storage_fixed.hpp>
 
-#pragma comment(lib, "libgmp-3.lib")
-
 // This macro is not quite good, but - it's ok for our needs
 #define ARRAY_SIZE(array) sizeof(array) / sizeof(array[0])
 

Modified: sandbox/SOC/2007/bigint/libs/bigint/test/can_convert_to.cpp
==============================================================================
--- sandbox/SOC/2007/bigint/libs/bigint/test/can_convert_to.cpp (original)
+++ sandbox/SOC/2007/bigint/libs/bigint/test/can_convert_to.cpp 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -21,8 +21,6 @@
 #include <boost/bigint/bigint_storage_vector.hpp>
 #include <boost/bigint/bigint_storage_fixed.hpp>
 
-#pragma comment(lib, "libgmp-3.lib")
-
 template <typename I> void test()
 {
         typedef boost::bigint_base<I> number;

Modified: sandbox/SOC/2007/bigint/libs/bigint/test/comparison.cpp
==============================================================================
--- sandbox/SOC/2007/bigint/libs/bigint/test/comparison.cpp (original)
+++ sandbox/SOC/2007/bigint/libs/bigint/test/comparison.cpp 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -21,8 +21,6 @@
 #include <boost/bigint/bigint_storage_vector.hpp>
 #include <boost/bigint/bigint_storage_fixed.hpp>
 
-#pragma comment(lib, "libgmp-3.lib")
-
 // This macro is not quite good, but - it's ok for our needs
 #define ARRAY_SIZE(array) sizeof(array) / sizeof(array[0])
 

Modified: sandbox/SOC/2007/bigint/libs/bigint/test/functions.cpp
==============================================================================
--- sandbox/SOC/2007/bigint/libs/bigint/test/functions.cpp (original)
+++ sandbox/SOC/2007/bigint/libs/bigint/test/functions.cpp 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -21,8 +21,6 @@
 #include <boost/bigint/bigint_storage_vector.hpp>
 #include <boost/bigint/bigint_storage_fixed.hpp>
 
-#pragma comment(lib, "libgmp-3.lib")
-
 #define ARRAY_SIZE(array) sizeof(array) / sizeof(array[0])
 
 template <typename I> void test()

Modified: sandbox/SOC/2007/bigint/libs/bigint/test/number_conversion.cpp
==============================================================================
--- sandbox/SOC/2007/bigint/libs/bigint/test/number_conversion.cpp (original)
+++ sandbox/SOC/2007/bigint/libs/bigint/test/number_conversion.cpp 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -23,8 +23,6 @@
 
 #include <sstream>
 
-#pragma comment(lib, "libgmp-3.lib")
-
 // This macro is not quite good, but - it's ok for our needs
 #define ARRAY_SIZE(array) sizeof(array) / sizeof(array[0])
 

Modified: sandbox/SOC/2007/bigint/libs/bigint/test/serialization.cpp
==============================================================================
--- sandbox/SOC/2007/bigint/libs/bigint/test/serialization.cpp (original)
+++ sandbox/SOC/2007/bigint/libs/bigint/test/serialization.cpp 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -27,8 +27,6 @@
 #include <boost/archive/xml_iarchive.hpp>
 #include <boost/archive/xml_oarchive.hpp>
 
-#pragma comment(lib, "libgmp-3.lib")
-
 template <typename I> void test_number(const char* value)
 {
         typedef boost::bigint_base<I> number;

Modified: sandbox/SOC/2007/bigint/libs/bigint/test/stream.cpp
==============================================================================
--- sandbox/SOC/2007/bigint/libs/bigint/test/stream.cpp (original)
+++ sandbox/SOC/2007/bigint/libs/bigint/test/stream.cpp 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -24,8 +24,6 @@
 #include <string>
 #include <sstream>
 
-#pragma comment(lib, "libgmp-3.lib")
-
 template <typename T, typename Tr> std::basic_ios<T, Tr>& setfillch(std::basic_ios<T, Tr>& s)
 {
         s.fill('_');

Modified: sandbox/SOC/2007/bigint/libs/bigint/test/string_conversion.cpp
==============================================================================
--- sandbox/SOC/2007/bigint/libs/bigint/test/string_conversion.cpp (original)
+++ sandbox/SOC/2007/bigint/libs/bigint/test/string_conversion.cpp 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -23,8 +23,6 @@
 
 #include <string>
 
-#pragma comment(lib, "libgmp-3.lib")
-
 // This macro is not quite good, but - it's ok for our needs
 #define ARRAY_SIZE(array) sizeof(array) / sizeof(array[0])
 

Modified: sandbox/SOC/2007/bigint/libs/bigint/test/unary.cpp
==============================================================================
--- sandbox/SOC/2007/bigint/libs/bigint/test/unary.cpp (original)
+++ sandbox/SOC/2007/bigint/libs/bigint/test/unary.cpp 2007-08-06 18:01:46 EDT (Mon, 06 Aug 2007)
@@ -21,8 +21,6 @@
 #include <boost/bigint/bigint_storage_vector.hpp>
 #include <boost/bigint/bigint_storage_fixed.hpp>
 
-#pragma comment(lib, "libgmp-3.lib")
-
 template <typename I> void test()
 {
         typedef boost::bigint_base<I> number;


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