2017-03-03 21:08:28 -05:00
|
|
|
#include <boost/test/test_case_template.hpp>
|
|
|
|
#include <boost/test/unit_test.hpp>
|
|
|
|
|
|
|
|
#include "coordinates.hpp"
|
|
|
|
#include "equal_json.hpp"
|
|
|
|
#include "fixture.hpp"
|
|
|
|
|
|
|
|
#include "osrm/osrm.hpp"
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE(options)
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(test_ch)
|
|
|
|
{
|
|
|
|
using namespace osrm;
|
|
|
|
EngineConfig config;
|
2017-03-05 17:53:41 -05:00
|
|
|
config.use_shared_memory = false;
|
2017-03-21 06:27:15 -04:00
|
|
|
config.storage_config = storage::StorageConfig(OSRM_TEST_DATA_DIR "/ch/monaco.osrm");
|
2017-03-03 21:08:28 -05:00
|
|
|
config.algorithm = EngineConfig::Algorithm::CH;
|
2017-03-03 21:16:20 -05:00
|
|
|
OSRM osrm{config};
|
2017-03-03 21:08:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(test_corech)
|
|
|
|
{
|
|
|
|
using namespace osrm;
|
|
|
|
EngineConfig config;
|
2017-03-05 17:53:41 -05:00
|
|
|
config.use_shared_memory = false;
|
2017-03-21 06:27:15 -04:00
|
|
|
config.storage_config = storage::StorageConfig(OSRM_TEST_DATA_DIR "/corech/monaco.osrm");
|
2017-03-03 21:08:28 -05:00
|
|
|
config.algorithm = EngineConfig::Algorithm::CoreCH;
|
2017-03-03 21:16:20 -05:00
|
|
|
OSRM osrm{config};
|
2017-03-03 21:08:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(test_mld)
|
|
|
|
{
|
|
|
|
using namespace osrm;
|
|
|
|
EngineConfig config;
|
2017-03-05 17:53:41 -05:00
|
|
|
config.use_shared_memory = false;
|
2017-03-21 06:27:15 -04:00
|
|
|
config.storage_config = storage::StorageConfig(OSRM_TEST_DATA_DIR "/mld/monaco.osrm");
|
2017-03-03 21:08:28 -05:00
|
|
|
config.algorithm = EngineConfig::Algorithm::MLD;
|
2017-03-03 21:16:20 -05:00
|
|
|
OSRM osrm{config};
|
2017-03-03 21:08:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|