test-scene-2.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 //#cmake:add-file ../../../src/algo/depth-to-rgb-calibration/*.cpp
5 //#cmake:add-file ../../../src/algo/thermal-loop/*.cpp
6 
7 //#test:flag custom-args # disable passing in of catch2 arguments
8 
9 #define DISABLE_LOG_TO_STDOUT
10 #include "d2rgb-common.h"
11 #include "compare-to-bin-file.h"
12 #include "compare-scene.h"
13 
14 
15 TEST_CASE("Scene 2", "[d2rgb]")
16 {
17  ac_logger logger;
18 
19  // TODO so Travis passes, until we fix the test-case
20  //std::string scene_dir("..\\unit-tests\\algo\\depth-to-rgb-calibration\\19.2.20");
21  std::string scene_dir( "C:\\work\\autocal\\New\\A\\20_05_2020-Ashrafon-cubic2-4\\ac_4" );
22  scene_dir += "\\1\\";
23 
24  std::ifstream f( join( bin_dir( scene_dir ), "camera_params" ) );
25  if( f.good() )
26  compare_scene( scene_dir );
27  else
28  std::cout << "-I- skipping scene-2 test for now" << std::endl;
29 }
std::string join(const std::string &base, const std::string &path)
Definition: filesystem.h:113
GLsizei const GLchar *const * string
TEST_CASE("Scene 2","[d2rgb]")
GLdouble f
std::ostream & cout()
void compare_scene(std::string const &scene_dir, bool debug_mode=true, scene_stats *stats=nullptr)
std::string bin_dir(std::string const &scene_dir)
Definition: scene-data.h:13


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:11