1// Copyright 2022 The ChromiumOS Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5 6// Note: This grpc service is a short term solution that will be deprecated 7// once the CTRv2 is complete 8 9syntax = "proto3"; 10 11package chromiumos.test.api; 12 13option go_package = "go.chromium.org/chromiumos/config/go/test/api"; 14 15service CrosTestRunnerService { 16 // Executes the given tests on the given dut 17 rpc Run(RunCrosTestRequest) returns (RunCrosTestResponse) {} 18} 19 20message RunCrosTestRequest { 21 message AutotestArg { 22 // The name of the autotest argument 23 string flag = 1; 24 // The value of the autotest argument 25 string value = 2; 26 } 27 // The ip of the dut 28 string host = 1; 29 // The board name of the dut 30 string board = 2; 31 // The tast and tauto tests to run on the dut 32 repeated string tests = 3; 33 // The directory where test results and logs will be placed 34 string results_dir_name = 4; 35 // Custom arguments passed into the autotest test harness 36 repeated AutotestArg autotest_args = 5; 37 // The docker image tag of cros-test container to run 38 string cros_test_image_tag = 6; 39} 40 41message RunCrosTestResponse { 42 // standard out from the run 43 string stdout = 1; 44 // standard err from the run 45 string stderr = 2; 46 // return code 47 int32 return_code = 3; 48}