blob: c95301dc465a83c96a9166db9886a309eb2c75ae [file]
# Copyright 2023 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Note: This is a sample file for reference only. Users should edit and use config.yml instead.
TestBeds:
- Name: TEST_BED_TABLET_SCENES_INDEX_0 # Need 'tablet' in name for tablet scenes
Controllers:
AndroidDevice:
- serial: <device-id-0> # quotes are needed if serial id is entirely numeric
label: dut
- serial: <tablet-id-0> # quotes are needed if serial id is entirely numeric
label: tablet
TestParams:
brightness: 192
chart_distance: 22.0
debug_mode: "False" # quotes are needed here
lighting_cntl: <controller-type> # can be arduino or "None"
lighting_ch: <controller-channel-0>
camera: <camera-id>
scene: <scene-name> # if <scene-name> runs all scenes
foldable_device: "False" # "True" if testing a foldable device
- Name: TEST_BED_TABLET_SCENES_INDEX_1 # Need 'tablet' in name for tablet scenes
Controllers:
AndroidDevice:
- serial: <device-id-1> # quotes needed if serial id entirely numeric
label: dut
- serial: <tablet-id-1> # quotes needed if serial id entirely numeric
label: tablet
TestParams:
brightness: 192
chart_distance: 22.0
debug_mode: "False" # quotes are needed here
lighting_cntl: <controller-type> # can be arduino or "None"
lighting_ch: <controller-channel-1>
camera: <camera-id>
scene: <scene-name> # if <scene-name> runs all scenes
foldable_device: "False" # "True" if testing a foldable device
- Name: TEST_BED_TABLET_SCENES_INDEX_2 # Need 'tablet' in name for tablet scenes
Controllers:
AndroidDevice:
- serial: <device-id-2> # quotes are needed if serial id is entirely numeric
label: dut
- serial: <tablet-id-2> # quotes are needed if serial id is entirely numeric
label: tablet
TestParams:
brightness: 192
chart_distance: 22.0
debug_mode: "False" # quotes are needed here
lighting_cntl: <controller-type> # can be arduino or "None"
lighting_ch: <controller-channel-2>
camera: <camera-id>
scene: <scene-name> # if <scene-name> runs all scenes
foldable_device: "False" # "True" if testing a foldable device
# TEST_BED_SENSOR_FUSION represents testbed index 3
# Parallel sensor_fusion is currently unsupported due to Arduino requirements
- Name: TEST_BED_SENSOR_FUSION # Need 'sensor_fusion' in name for SF tests
# Test configuration for sensor_fusion/test_sensor_fusion.py
Controllers:
AndroidDevice:
- serial: <device-id> # quotes are needed if serial id is entirely numeric
label: dut
TestParams:
fps: 30
img_size: 640,480
test_length: 7
debug_mode: "False" # quotes are needed here
chart_distance: 25
rotator_cntl: "arduino" # Note: only sensor fusion supports manual
rotator_ch: <controller-channel>
camera: <camera-id>
foldable_device: "False" # "True" if testing a foldable device
tablet_device: "False" # "True" if testing a tablet device
lighting_cntl: <controller-type> # can be arduino or "None"
lighting_ch: <controller-channel>
scene: "sensor_fusion"
# TEST_BED_GEN2_INDEX_0 and TEST_BED_GEN2_INDEX_1 are for parallel testing on gen2 rig
# Note: No tablet scenes testbeds can be present when running parallel testing on gen2 rigs
TestBeds:
- Name: TEST_BED_GEN2_INDEX_0
# Test configuration for scene_ip and scene_gen2_chart
Controllers:
AndroidDevice:
- serial: <device-id> # quotes needed if serial id entirely numeric
label: dut
TestParams:
chart_distance: 30
rotator_cntl: gen2_rotator # gen2 rig specific. "None" if gen2 rig not available
rotator_ch: <controller-channel>
camera: <camera-id>
foldable_device: "False" # "True" if testing foldable device
tablet_device: "False" # "True" if testing tablet device
lighting_cntl: gen2_lights # gen2 rig specific. "None" if gen2 rig not available
lighting_ch: <controller-channel>
scene: scene_ip # or scene_gen2_chart
rotator_port: /dev/ttyUSB0 # run tools/find_gen2_boards.py to find ports
lights_port: /dev/ttyACM0
# For sensor fusion tests
fps: 30
img_size: 640,480 # width, height
test_length: 7
debug_mode: "False" # quotes are needed here
- Name: TEST_BED_GEN2_INDEX_1
Controllers:
AndroidDevice:
- serial: <device-id> # quotes needed if serial id entirely numeric
label: dut
TestParams:
chart_distance: 30
rotator_cntl: gen2_rotator # gen2 rig specific. "None" if gen2 rig not available
rotator_ch: <controller-channel>
camera: <camera-id>
foldable_device: "False" # "True" if testing foldable device
tablet_device: "False" # "True" if testing tablet device
lighting_cntl: gen2_lights # gen2 rig specific. "None" if gen2 rig not available
lighting_ch: <controller-channel>
scene: scene_ip # or scene_gen2_chart
rotator_port: /dev/ttyUSB1
lights_port: /dev/ttyACM1
# For sensor fusion tests
fps: 30
img_size: 640,480 # width, height
test_length: 7
debug_mode: "False" # quotes are needed here