Try to fix flaky tests

This commit is contained in:
Siarhei Fedartsou 2024-11-03 18:51:42 +01:00
parent 21c9f5d17d
commit 3d9f0c6549
2 changed files with 13 additions and 13 deletions

View File

@ -575,7 +575,7 @@ jobs:
# All tests assume to be run from the build directory
pushd ${OSRM_BUILD_DIR}
for i in $(seq 1 1000); do
for i in $(seq 1 100); do
echo "Iteration $i"
for test in ./unit_tests/*-tests; do
echo "Running $test"

View File

@ -47,18 +47,18 @@ BOOST_AUTO_TEST_CASE(test_extract_with_invalid_config)
oneapi::tbb::finalize(handle);
}
// BOOST_AUTO_TEST_CASE(test_extract_with_valid_config)
// {
// oneapi::tbb::task_scheduler_handle handle{tbb::attach{}};
// osrm::ExtractorConfig config;
// config.input_path = OSRM_TEST_DATA_DIR "/monaco.osm.pbf";
// config.UseDefaultOutputNames(OSRM_TEST_DATA_DIR "/monaco.osm.pbf");
// config.profile_path = OSRM_TEST_DATA_DIR "/../../profiles/car.lua";
// config.small_component_size = 1000;
// config.requested_num_threads = std::thread::hardware_concurrency();
// BOOST_CHECK_NO_THROW(osrm::extract(config));
// oneapi::tbb::finalize(handle);
// }
BOOST_AUTO_TEST_CASE(test_extract_with_valid_config)
{
oneapi::tbb::task_scheduler_handle handle{tbb::attach{}};
osrm::ExtractorConfig config;
config.input_path = OSRM_TEST_DATA_DIR "/monaco.osm.pbf";
config.UseDefaultOutputNames(OSRM_TEST_DATA_DIR "/monaco.osm.pbf");
config.profile_path = OSRM_TEST_DATA_DIR "/../../profiles/car.lua";
config.small_component_size = 1000;
config.requested_num_threads = std::thread::hardware_concurrency();
BOOST_CHECK_NO_THROW(osrm::extract(config));
oneapi::tbb::finalize(handle);
}
// BOOST_AUTO_TEST_CASE(test_setup_runtime_error)
// {