1// Copyright 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto2";
16
17package android.test.lab;
18
19// To specify the whole test execution schedule of a manifest branch.
20message LabConfigMessage {
21  // Lab name where format is labtype-location-instance (e.g., vtslab-mtv32-main).
22  optional bytes name = 1;
23  optional bytes owner = 2;
24  repeated bytes admin = 3;
25
26  // For the IP address.
27  repeated HostConfigMessage host = 11;
28}
29
30// To specify the basic information about a host computer.
31message HostConfigMessage {
32  optional bytes hostname = 1;
33  optional bytes ip = 2;
34
35  // host management scripts
36  optional bytes script = 3;
37  optional bytes setup_script = 4;
38
39  // list of equipment installed on this host.
40  repeated bytes host_equipment = 5;
41
42  repeated DeviceConfigMessage device = 11;
43}
44
45// To specify information about a DUT (Device Under Test).
46message DeviceConfigMessage {
47  // device serial number (retrieved by fastboot or adb).
48  optional bytes serial = 1;
49
50  // optional - device index for a host starting from 0 to 13 (max).
51  optional int32 index = 2;
52
53  // device product type (e.g., taimen or walleye).
54  optional bytes product = 11;
55
56  // list of equipment installed on this device.
57  repeated bytes device_equipment = 21;
58}
59
60