mur/l500/test-dependencies.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2021 Intel Corporation. All Rights Reserved.
3 
4 //#test:tag max-usable-range
5 //#test:device L500*
6 
7 #include "../../func-common.h"
8 
9 
10 // Test group description:
11 // * This tests group verifies depth sensor max usable range option restrictions,
12 // according to [RS-8358]
13 //
14 // Current test description:
15 // * While not streaming, activating Max Usable Range option should make sure the visual preset is 'Max Range'
16 // and sensor mode is 'VGA'
17 // if it is not it will set the visual preset to max range and the sensor mode to 'VGA'
18 // * Reading Max Usable Range while Max Usable Range option is off or not streaming - expect exception thrown
19 //
20 // Note: * L515 specific test
21 // * Test will pass if no L515 device is connected
22 // * Test will be performed on the first L515 device detected.
23 
24 TEST_CASE( "Max Usable Range option change visual preset and sensor mode if not streaming", "[max-usable-range]" )
25 {
26  auto depth_sensor
29  REQUIRE(mur);
32  CHECK_NOTHROW( mur.set_option( RS2_OPTION_ENABLE_MAX_USABLE_RANGE, 1.f ) );
34  CHECK( RS2_SENSOR_MODE_VGA == mur.get_option( RS2_OPTION_SENSOR_MODE ) );
35 
36 }
37 
TEST_CASE("Max Usable Range option change visual preset and sensor mode if not streaming","[max-usable-range]")
REQUIRE(n_callbacks==1)
rs2::depth_sensor find_first_supported_depth_sensor_or_exit(const std::string &dev_name, rs2_option opt)
Definition: func-common.h:77
T as() const
Definition: rs_sensor.hpp:333
#define CHECK_NOTHROW(...)
Definition: catch.hpp:17421
#define CHECK(condition)


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