]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/mpi/test/all_to_all_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / mpi / test / all_to_all_test.cpp
index 4863a2cd083850e46578766d4dddfc305188627e..0e27dcf05c9211f0643d6760a98ad927f40bb96d 100644 (file)
@@ -8,7 +8,6 @@
 #include <boost/mpi/collectives/all_to_all.hpp>
 #include <boost/mpi/communicator.hpp>
 #include <boost/mpi/environment.hpp>
-#include <boost/test/minimal.hpp>
 #include <algorithm>
 #include "gps_position.hpp"
 #include <boost/serialization/string.hpp>
@@ -16,6 +15,9 @@
 #include <boost/iterator/counting_iterator.hpp>
 #include <boost/lexical_cast.hpp>
 
+#define BOOST_TEST_MODULE mpi_all_to_all
+#include <boost/test/included/unit_test.hpp>
+
 using boost::mpi::communicator;
 
 using boost::mpi::packed_skeleton_iarchive;
@@ -99,15 +101,13 @@ struct string_list_generator
   }
 };
 
-int test_main(int argc, char* argv[])
+BOOST_AUTO_TEST_CASE(all_to_all_check)
 {
-  boost::mpi::environment env(argc, argv);
-
+  boost::mpi::environment env;
   communicator comm;
+
   all_to_all_test(comm, int_generator(), "integers");
   all_to_all_test(comm, gps_generator(), "GPS positions");
   all_to_all_test(comm, string_generator(), "string");
   all_to_all_test(comm, string_list_generator(), "list of strings");
-
-  return 0;
 }