Merge pull request #709 from gardster/routing_consistency_test

Routing consistency test usage in generate planet script.
This commit is contained in:
Ilya Zverev 2015-11-26 11:04:43 +03:00
commit 6eca60c5f8
4 changed files with 1682 additions and 2 deletions

1673
data/routing_statistics.log Normal file

File diff suppressed because it is too large Load diff

View file

@ -27,7 +27,8 @@ static CommandLineOptions g_options;
CommandLineOptions const & GetTestingOptions() {return g_options;}
DEFINE_string(input_file, "", "File with statistics output.");
DEFINE_string(data_path, "", "Working directory, 'path_to_exe/../../data' if empty.");
DEFINE_string(data_path, "../../data/", "Working directory, 'path_to_exe/../../data' if empty.");
DEFINE_string(user_resource_path, "", "User defined resource path for classificator.txt and etc.");
DEFINE_bool(verbose, false, "Output processed lines to log.");
DEFINE_uint64(confidence, 5, "Maximum test count for each single mwm file.");
@ -177,6 +178,7 @@ int main(int argc, char ** argv)
google::ParseCommandLineFlags(&argc, &argv, true);
g_options.m_dataPath = FLAGS_data_path.c_str();
g_options.m_resourcePath = FLAGS_user_resource_path.c_str();
if (FLAGS_input_file.empty())
return 1;

View file

@ -1,7 +1,7 @@
# This subproject implements routing consistency tests.
# This tests are launched on the whole world dataset.
TARGET = routing_consistency
TARGET = routing_consistency_test
CONFIG += console warn_on
CONFIG -= app_bundle
TEMPLATE = app

View file

@ -113,5 +113,10 @@ echo
echo '### INTEGRATION TESTS'
"$(dirname "$GENERATOR_TOOL")/routing_integration_tests" "--data_path=$FTARGET/" "--user_resource_path=$OMIM_PATH/data/" "--suppress=online_cross_tests.*" 2>&1
# Step 5: run consistency tests
echo
echo '### CONSISTENCY TEST'
"$(dirname "$GENERATOR_TOOL")/routing_consistency_test" "--data_path=$FTARGET/" "--user_resource_path=$OMIM_PATH/data/" "--input_file=$OMIM_PATH/data/routing_statistics.log" 2>&1
# Clean the temporary directory
rm -r "$FTARGET"