|  |  | @ -126,7 +126,6 @@ std::string download_demo_route() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       std::string log_path = util::string_format("%s/%s--%d/", data_dir.c_str(), route_name.c_str(), i); |  |  |  |       std::string log_path = util::string_format("%s/%s--%d/", data_dir.c_str(), route_name.c_str(), i); | 
			
		
	
		
		
			
				
					
					|  |  |  |       util::create_directories(log_path, 0755); |  |  |  |       util::create_directories(log_path, 0755); | 
			
		
	
		
		
			
				
					
					|  |  |  |       REQUIRE(download_to_file(remote_route.at(i).rlog.toStdString(), log_path + "rlog.bz2")); |  |  |  |       REQUIRE(download_to_file(remote_route.at(i).rlog.toStdString(), log_path + "rlog.bz2")); | 
			
		
	
		
		
			
				
					
					|  |  |  |       REQUIRE(download_to_file(remote_route.at(i).road_cam.toStdString(), log_path + "fcamera.hevc")); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       REQUIRE(download_to_file(remote_route.at(i).driver_cam.toStdString(), log_path + "dcamera.hevc")); |  |  |  |       REQUIRE(download_to_file(remote_route.at(i).driver_cam.toStdString(), log_path + "dcamera.hevc")); | 
			
		
	
		
		
			
				
					
					|  |  |  |       REQUIRE(download_to_file(remote_route.at(i).wide_road_cam.toStdString(), log_path + "ecamera.hevc")); |  |  |  |       REQUIRE(download_to_file(remote_route.at(i).wide_road_cam.toStdString(), log_path + "ecamera.hevc")); | 
			
		
	
		
		
			
				
					
					|  |  |  |       REQUIRE(download_to_file(remote_route.at(i).qcamera.toStdString(), log_path + "qcamera.ts")); |  |  |  |       REQUIRE(download_to_file(remote_route.at(i).qcamera.toStdString(), log_path + "qcamera.ts")); | 
			
		
	
	
		
		
			
				
					|  |  | @ -137,10 +136,9 @@ std::string download_demo_route() { | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | TEST_CASE("Route") { |  |  |  | TEST_CASE("Local route") { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   std::string data_dir = download_demo_route(); |  |  |  |   std::string data_dir = download_demo_route(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   SECTION("Local route") { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   auto flags = GENERATE(REPLAY_FLAG_DCAM | REPLAY_FLAG_ECAM, REPLAY_FLAG_QCAMERA); |  |  |  |   auto flags = GENERATE(REPLAY_FLAG_DCAM | REPLAY_FLAG_ECAM, REPLAY_FLAG_QCAMERA); | 
			
		
	
		
		
			
				
					
					|  |  |  |   Route route(DEMO_ROUTE, QString::fromStdString(data_dir)); |  |  |  |   Route route(DEMO_ROUTE, QString::fromStdString(data_dir)); | 
			
		
	
		
		
			
				
					
					|  |  |  |   REQUIRE(route.load()); |  |  |  |   REQUIRE(route.load()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -148,8 +146,9 @@ TEST_CASE("Route") { | 
			
		
	
		
		
			
				
					
					|  |  |  |   for (int i = 0; i < route.segments().size(); ++i) { |  |  |  |   for (int i = 0; i < route.segments().size(); ++i) { | 
			
		
	
		
		
			
				
					
					|  |  |  |     read_segment(i, route.at(i), flags); |  |  |  |     read_segment(i, route.at(i), flags); | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  |   }; |  |  |  | } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   SECTION("Remote route") { |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | TEST_CASE("Remote route") { | 
			
		
	
		
		
			
				
					
					|  |  |  |   auto flags = GENERATE(REPLAY_FLAG_DCAM | REPLAY_FLAG_ECAM, REPLAY_FLAG_QCAMERA); |  |  |  |   auto flags = GENERATE(REPLAY_FLAG_DCAM | REPLAY_FLAG_ECAM, REPLAY_FLAG_QCAMERA); | 
			
		
	
		
		
			
				
					
					|  |  |  |   Route route(DEMO_ROUTE); |  |  |  |   Route route(DEMO_ROUTE); | 
			
		
	
		
		
			
				
					
					|  |  |  |   REQUIRE(route.load()); |  |  |  |   REQUIRE(route.load()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -157,7 +156,6 @@ TEST_CASE("Route") { | 
			
		
	
		
		
			
				
					
					|  |  |  |   for (int i = 0; i < 2; ++i) { |  |  |  |   for (int i = 0; i < 2; ++i) { | 
			
		
	
		
		
			
				
					
					|  |  |  |     read_segment(i, route.at(i), flags); |  |  |  |     read_segment(i, route.at(i), flags); | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  |   }; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | // helper class for unit tests
 |  |  |  | // helper class for unit tests
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |