13#define BOOST_TEST_DYN_LINK
14#define BOOST_TEST_MAIN
15#define BOOST_TEST_MODULE SearchingTestSuite
16#include <boost/test/unit_test.hpp>
23namespace boost_utf = boost::unit_test;
35#if defined(BOOST_VERSION) && BOOST_VERSION >= 105900
36 boost_utf::unit_test_log.set_format (boost_utf::OF_XML);
38 boost_utf::unit_test_log.set_format (boost_utf::XML);
40 boost_utf::unit_test_log.set_threshold_level (boost_utf::log_test_units);
72BOOST_AUTO_TEST_SUITE (master_test_suite)
80 std::string lLogFilename (
"SearchingTestSuite.log");
83 std::string lTravelQuery (
"nce");
86 std::ofstream logOutputFile;
88 logOutputFile.open (lLogFilename.c_str());
89 logOutputFile.clear();
97 lDBType, lSQLDBConnStr,
104 opentrepService.interpretTravelRequest (lTravelQuery, lLocationList,
105 lNonMatchedWordList);
106 BOOST_CHECK_MESSAGE (nbOfMatches == 1,
107 "The travel query ('" << lTravelQuery
108 <<
"') matches with " << nbOfMatches
109 <<
" key-words, whereas 1 is expected.");
112 logOutputFile.close();
116BOOST_AUTO_TEST_SUITE_END()
std::ofstream utfReportStream("PartitionTestSuite_utfresults.xml")
BOOST_AUTO_TEST_CASE(partition_small_string)
BOOST_GLOBAL_FIXTURE(UnitTestConfig)
const std::string X_XAPIAN_DB_FP("/tmp/opentrep/test_traveldb")
const std::string X_SQL_DB_STR("")
const OPENTREP::DeploymentNumber_T X_DEPLOYMENT_NUMBER(0)
std::ofstream utfReportStream("UnicodeTestSuite_utfresults.xml")
Interface for the OPENTREP Services.
std::list< Word_T > WordList_T
std::list< Location > LocationList_T
unsigned short DeploymentNumber_T
unsigned short NbOfMatches_T
Enumeration of database types.