-/* $Id: test_boost_threads.cpp,v 1.10 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_boost_threads.cpp,v 1.11 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include <boost/thread/thread.hpp>
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
#include <list>
#define USE_GROUP 1
-BOOST_AUTO_UNIT_TEST( thread_group )
+BOOST_AUTO_TEST_CASE( thread_group )
{
try
{
}
-BOOST_AUTO_UNIT_TEST( thread_list )
+BOOST_AUTO_TEST_CASE( thread_list )
{
try
{
-/* $Id: test_boost_time.cpp,v 1.11 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_boost_time.cpp,v 1.12 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "boost/date_time/posix_time/posix_time.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
-BOOST_AUTO_UNIT_TEST( testboosttime1 )
+BOOST_AUTO_TEST_CASE( testboosttime1 )
{
// test session
-/* $Id: test_filter_auth_simple.cpp,v 1.5 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_auth_simple.cpp,v 1.6 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "package.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
};
-BOOST_AUTO_UNIT_TEST( test_filter_auth_simple_1 )
+BOOST_AUTO_TEST_CASE( test_filter_auth_simple_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_auth_simple2 )
+BOOST_AUTO_TEST_CASE( test_filter_auth_simple2 )
{
try
{
-/* $Id: test_filter_backend_test.cpp,v 1.11 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_backend_test.cpp,v 1.12 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include <yaz/otherinfo.h>
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
namespace mp = metaproxy_1;
-BOOST_AUTO_UNIT_TEST( test_filter_backend_test_1 )
+BOOST_AUTO_TEST_CASE( test_filter_backend_test_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_backend_test_2 )
+BOOST_AUTO_TEST_CASE( test_filter_backend_test_2 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_backend_test_3 )
+BOOST_AUTO_TEST_CASE( test_filter_backend_test_3 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_backend_test_4 )
+BOOST_AUTO_TEST_CASE( test_filter_backend_test_4 )
{
try
{
-/* $Id: test_filter_bounce.cpp,v 1.3 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_bounce.cpp,v 1.4 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include <stdexcept>
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_bounce_1 )
+BOOST_AUTO_TEST_CASE( test_filter_bounce_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_bounce_2 )
+BOOST_AUTO_TEST_CASE( test_filter_bounce_2 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_bounce_3 )
+BOOST_AUTO_TEST_CASE( test_filter_bounce_3 )
{
try
{
-/* $Id: test_filter_factory.cpp,v 1.16 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_factory.cpp,v 1.17 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
return new YFilter;
}
-BOOST_AUTO_UNIT_TEST( test_filter_factory_1 )
+BOOST_AUTO_TEST_CASE( test_filter_factory_1 )
{
try {
#if HAVE_DL_SUPPORT
#if HAVE_DLFCN_H
-BOOST_AUTO_UNIT_TEST( test_filter_factory_2 )
+BOOST_AUTO_TEST_CASE( test_filter_factory_2 )
{
try {
mp::FactoryFilter ffactory;
-/* $Id: test_filter_frontend_net.cpp,v 1.18 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_frontend_net.cpp,v 1.19 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-/* $Id: test_filter_frontend_net.cpp,v 1.18 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_frontend_net.cpp,v 1.19 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
See the LICENSE file for details
#include "package.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
};
-BOOST_AUTO_UNIT_TEST( test_filter_frontend_net_1 )
+BOOST_AUTO_TEST_CASE( test_filter_frontend_net_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_frontend_net_2 )
+BOOST_AUTO_TEST_CASE( test_filter_frontend_net_2 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_frontend_net_3 )
+BOOST_AUTO_TEST_CASE( test_filter_frontend_net_3 )
{
try
{
-/* $Id: test_filter_log.cpp,v 1.12 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_log.cpp,v 1.13 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "package.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
};
-BOOST_AUTO_UNIT_TEST( test_filter_log_1 )
+BOOST_AUTO_TEST_CASE( test_filter_log_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_log_2 )
+BOOST_AUTO_TEST_CASE( test_filter_log_2 )
{
try
{
-/* $Id: test_filter_multi.cpp,v 1.5 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_multi.cpp,v 1.6 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "package.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
};
-BOOST_AUTO_UNIT_TEST( test_filter_multi_1 )
+BOOST_AUTO_TEST_CASE( test_filter_multi_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_multi_2 )
+BOOST_AUTO_TEST_CASE( test_filter_multi_2 )
{
try
{
-/* $Id: test_filter_query_rewrite.cpp,v 1.13 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_query_rewrite.cpp,v 1.14 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "package.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
}
-BOOST_AUTO_UNIT_TEST( test_filter_query_rewrite_1 )
+BOOST_AUTO_TEST_CASE( test_filter_query_rewrite_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_query_rewrite2 )
+BOOST_AUTO_TEST_CASE( test_filter_query_rewrite2 )
{
try
{
}
-BOOST_AUTO_UNIT_TEST( test_filter_query_rewrite3 )
+BOOST_AUTO_TEST_CASE( test_filter_query_rewrite3 )
{
-/* $Id: test_filter_record_transform.cpp,v 1.6 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_record_transform.cpp,v 1.7 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
//#include <stdexcept>
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
#include <iostream>
-BOOST_AUTO_UNIT_TEST( test_filter_record_transform_1 )
+BOOST_AUTO_TEST_CASE( test_filter_record_transform_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_record_transform_2 )
+BOOST_AUTO_TEST_CASE( test_filter_record_transform_2 )
{
try
{
}
-BOOST_AUTO_UNIT_TEST( test_filter_record_transform_3 )
+BOOST_AUTO_TEST_CASE( test_filter_record_transform_3 )
{
-/* $Id: test_filter_sru_to_z3950.cpp,v 1.5 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_sru_to_z3950.cpp,v 1.6 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include <stdexcept>
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
-BOOST_AUTO_UNIT_TEST( test_filter_sru_to_z3950_1 )
+BOOST_AUTO_TEST_CASE( test_filter_sru_to_z3950_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_sru_to_z3950_2 )
+BOOST_AUTO_TEST_CASE( test_filter_sru_to_z3950_2 )
{
try
{
}
-// BOOST_AUTO_UNIT_TEST( test_filter_sru_to_z3950_3 )
+// BOOST_AUTO_TEST_CASE( test_filter_sru_to_z3950_3 )
// {
-/* $Id: test_filter_virt_db.cpp,v 1.17 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_virt_db.cpp,v 1.18 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "package.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
#include <yaz/zgdu.h>
namespace mp = metaproxy_1;
-BOOST_AUTO_UNIT_TEST( test_filter_virt_db_1 )
+BOOST_AUTO_TEST_CASE( test_filter_virt_db_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_virt_db_2 )
+BOOST_AUTO_TEST_CASE( test_filter_virt_db_2 )
{
try
{
BOOST_CHECK_EQUAL(z_gdu->u.z3950->which, Z_APDU_presentResponse);
}
-BOOST_AUTO_UNIT_TEST( test_filter_virt_db_3 )
+BOOST_AUTO_TEST_CASE( test_filter_virt_db_3 )
{
try
{
-/* $Id: test_filter_z3950_client.cpp,v 1.13 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_z3950_client.cpp,v 1.14 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "package.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
#include <yaz/zgdu.h>
using namespace boost::unit_test;
namespace mp = metaproxy_1;
-BOOST_AUTO_UNIT_TEST( test_filter_z3950_client_1 )
+BOOST_AUTO_TEST_CASE( test_filter_z3950_client_1 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_z3950_client_2 )
+BOOST_AUTO_TEST_CASE( test_filter_z3950_client_2 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_z3950_client_3 )
+BOOST_AUTO_TEST_CASE( test_filter_z3950_client_3 )
{
try
{
}
}
-BOOST_AUTO_UNIT_TEST( test_filter_z3950_client_4 )
+BOOST_AUTO_TEST_CASE( test_filter_z3950_client_4 )
{
try
{
-/* $Id: test_package1.cpp,v 1.8 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_package1.cpp,v 1.9 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "package.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
namespace mp = metaproxy_1;
-BOOST_AUTO_UNIT_TEST( test_package1_1 )
+BOOST_AUTO_TEST_CASE( test_package1_1 )
{
try {
mp::Package package1;
-/* $Id: test_pipe.cpp,v 1.11 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_pipe.cpp,v 1.12 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "pipe.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
}
}
-BOOST_AUTO_UNIT_TEST( test_pipe_1 )
+BOOST_AUTO_TEST_CASE( test_pipe_1 )
{
yazpp_1::SocketManager mySocketManager;
-/* $Id: test_router_flexml.cpp,v 1.20 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_router_flexml.cpp,v 1.21 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "factory_static.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
}
// Pass well-formed XML and valid configuration to it (implicit NS)
-BOOST_AUTO_UNIT_TEST( test_router_flexml_1 )
+BOOST_AUTO_TEST_CASE( test_router_flexml_1 )
{
try
{
}
// Pass non-wellformed XML
-BOOST_AUTO_UNIT_TEST( test_router_flexml_2 )
+BOOST_AUTO_TEST_CASE( test_router_flexml_2 )
{
bool got_error_as_expected = false;
try
}
// Pass well-formed XML with explicit NS
-BOOST_AUTO_UNIT_TEST( test_router_flexml_3 )
+BOOST_AUTO_TEST_CASE( test_router_flexml_3 )
{
try
{
}
// Pass well-formed XML but bad filter type
-BOOST_AUTO_UNIT_TEST( test_router_flexml_4 )
+BOOST_AUTO_TEST_CASE( test_router_flexml_4 )
{
bool got_error_as_expected = false;
try
-/* $Id: test_ses_map.cpp,v 1.6 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_ses_map.cpp,v 1.7 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
#include <yaz/zgdu.h>
}
-BOOST_AUTO_UNIT_TEST( test_ses_map_1 )
+BOOST_AUTO_TEST_CASE( test_ses_map_1 )
{
try
{
-/* $Id: test_session1.cpp,v 1.13 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_session1.cpp,v 1.14 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include <iostream>
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
namespace mp = metaproxy_1;
-BOOST_AUTO_UNIT_TEST( testsession1 )
+BOOST_AUTO_TEST_CASE( testsession1 )
{
// test session
-/* $Id: test_session2.cpp,v 1.10 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_session2.cpp,v 1.11 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include <boost/thread/thread.hpp>
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
-BOOST_AUTO_UNIT_TEST( testsession2 )
+BOOST_AUTO_TEST_CASE( testsession2 )
{
// test session
-/* $Id: test_thread_pool_observer.cpp,v 1.14 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_thread_pool_observer.cpp,v 1.15 2007-11-02 17:47:41 adam Exp $
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
#include "thread_pool_observer.hpp"
#define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
#endif
}
-BOOST_AUTO_UNIT_TEST( thread_pool_observer1 )
+BOOST_AUTO_TEST_CASE( thread_pool_observer1 )
{
SocketManager mySocketManager;