From fafebb613de6d070d60a3366b1120f9464dd6c11 Mon Sep 17 00:00:00 2001 From: Nir Azkiel Date: Mon, 10 Apr 2023 17:14:37 +0300 Subject: [PATCH 1/2] run more tests on more devices --- unit-tests/live/d400/test-auto-limits.cpp | 2 ++ unit-tests/live/frames/test-fps.py | 2 +- unit-tests/live/frames/test-t2ff-pipeline.py | 2 +- unit-tests/live/frames/test-t2ff-sensor.py | 2 +- unit-tests/live/metadata/test-alive.py | 2 +- .../live/options/test-rgb-options-metadata-consistency.py | 2 +- unit-tests/live/options/test-set-gain-stress-test.py | 2 +- unit-tests/live/options/test-timestamp-domain.py | 2 +- unit-tests/live/streaming/test-y16.cpp | 2 +- 9 files changed, 10 insertions(+), 8 deletions(-) diff --git a/unit-tests/live/d400/test-auto-limits.cpp b/unit-tests/live/d400/test-auto-limits.cpp index 8eaa8c70bb..8553180704 100644 --- a/unit-tests/live/d400/test-auto-limits.cpp +++ b/unit-tests/live/d400/test-auto-limits.cpp @@ -6,6 +6,8 @@ ///////////////////////////////////////////////////////////////////////////// //#test:device D400* !D457 +// auto-limits option is deprecated currently +//#test:donotrun #include "../../catch.h" #include "../../unit-tests-common.h" diff --git a/unit-tests/live/frames/test-fps.py b/unit-tests/live/frames/test-fps.py index f03b55cc07..4ceac54711 100644 --- a/unit-tests/live/frames/test-fps.py +++ b/unit-tests/live/frames/test-fps.py @@ -2,7 +2,7 @@ # Copyright(c) 2022 Intel Corporation. All Rights Reserved. # test:device L500* -# test:device D400* +# test:device each(D400*) # test:donotrun:!nightly # test:timeout 250 # timeout = (seconds_till_steady_state + seconds_to_count_frames) * tested_fps.size() * 2 + 10. (2 because depth + color, 10 spare) diff --git a/unit-tests/live/frames/test-t2ff-pipeline.py b/unit-tests/live/frames/test-t2ff-pipeline.py index 392629d1fb..de7c28928d 100644 --- a/unit-tests/live/frames/test-t2ff-pipeline.py +++ b/unit-tests/live/frames/test-t2ff-pipeline.py @@ -2,7 +2,7 @@ # Copyright(c) 2021 Intel Corporation. All Rights Reserved. # test:device L500* -# test:device D400* +# test:device each(D400*) import pyrealsense2 as rs diff --git a/unit-tests/live/frames/test-t2ff-sensor.py b/unit-tests/live/frames/test-t2ff-sensor.py index 98091677a4..cb28c5b4ac 100644 --- a/unit-tests/live/frames/test-t2ff-sensor.py +++ b/unit-tests/live/frames/test-t2ff-sensor.py @@ -2,7 +2,7 @@ # Copyright(c) 2021 Intel Corporation. All Rights Reserved. # test:device L500* -# test:device D400* +# test:device each(D400*) import pyrealsense2 as rs from rspy.stopwatch import Stopwatch diff --git a/unit-tests/live/metadata/test-alive.py b/unit-tests/live/metadata/test-alive.py index 1b5bafc07a..653dec62e9 100644 --- a/unit-tests/live/metadata/test-alive.py +++ b/unit-tests/live/metadata/test-alive.py @@ -52,7 +52,7 @@ def append_testing_profiles(dev) -> None: for s in dev.sensors: for p in s.profiles: - if not is_contain_profile(testing_profiles, p): + if not is_contain_profile(testing_profiles, p) and p.is_default(): testing_profiles[p] = s diff --git a/unit-tests/live/options/test-rgb-options-metadata-consistency.py b/unit-tests/live/options/test-rgb-options-metadata-consistency.py index beaa32d1fa..d4b7e3557d 100644 --- a/unit-tests/live/options/test-rgb-options-metadata-consistency.py +++ b/unit-tests/live/options/test-rgb-options-metadata-consistency.py @@ -2,7 +2,7 @@ # Copyright(c) 2021 Intel Corporation. All Rights Reserved. #test:device L500* -#test:device D400* +#test:device each(D400*) import pyrealsense2 as rs from rspy import test diff --git a/unit-tests/live/options/test-set-gain-stress-test.py b/unit-tests/live/options/test-set-gain-stress-test.py index 2a1faf7d5e..1ab4e34fa1 100644 --- a/unit-tests/live/options/test-set-gain-stress-test.py +++ b/unit-tests/live/options/test-set-gain-stress-test.py @@ -1,7 +1,7 @@ # License: Apache 2.0. See LICENSE file in root directory. # Copyright(c) 2021 Intel Corporation. All Rights Reserved. -# test:device D400* +# test:device each(D400*) # test:donotrun:!nightly import pyrealsense2 as rs diff --git a/unit-tests/live/options/test-timestamp-domain.py b/unit-tests/live/options/test-timestamp-domain.py index 82ec2f1171..b259f87fdb 100644 --- a/unit-tests/live/options/test-timestamp-domain.py +++ b/unit-tests/live/options/test-timestamp-domain.py @@ -1,7 +1,7 @@ # License: Apache 2.0. See LICENSE file in root directory. # Copyright(c) 2022 Intel Corporation. All Rights Reserved. -# test:device D400* +# test:device each(D400*) import time import pyrealsense2 as rs diff --git a/unit-tests/live/streaming/test-y16.cpp b/unit-tests/live/streaming/test-y16.cpp index 19db6eeafe..f18806c612 100644 --- a/unit-tests/live/streaming/test-y16.cpp +++ b/unit-tests/live/streaming/test-y16.cpp @@ -1,7 +1,7 @@ // License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2022 Intel Corporation. All Rights Reserved. -//#test:device D400* +//#test:device each(D400*) #include "../live-common.h" #include From c49323e53f1bbc945caa0a3fcbc26d3232b06a97 Mon Sep 17 00:00:00 2001 From: Nir Azkiel Date: Sun, 16 Apr 2023 14:03:26 +0300 Subject: [PATCH 2/2] add comments --- unit-tests/live/d400/test-auto-limits.cpp | 2 +- unit-tests/live/metadata/test-alive.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/unit-tests/live/d400/test-auto-limits.cpp b/unit-tests/live/d400/test-auto-limits.cpp index 8553180704..263cb830cc 100644 --- a/unit-tests/live/d400/test-auto-limits.cpp +++ b/unit-tests/live/d400/test-auto-limits.cpp @@ -6,7 +6,7 @@ ///////////////////////////////////////////////////////////////////////////// //#test:device D400* !D457 -// auto-limits option is deprecated currently +// auto-limits option is deprecated currently [LRS-487] //#test:donotrun #include "../../catch.h" diff --git a/unit-tests/live/metadata/test-alive.py b/unit-tests/live/metadata/test-alive.py index 653dec62e9..adefaf24b1 100644 --- a/unit-tests/live/metadata/test-alive.py +++ b/unit-tests/live/metadata/test-alive.py @@ -50,6 +50,7 @@ def append_testing_profiles(dev) -> None: """ global testing_profiles + # We only pick default profiles to avoid starting unsupported profiles for s in dev.sensors: for p in s.profiles: if not is_contain_profile(testing_profiles, p) and p.is_default():