| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: test_platform/phosphorus/runtest.proto |
| |
| package phosphorus |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Values should be consistent with https://aip.dev/216 |
| type RunTestResponse_State int32 |
| |
| const ( |
| // Should not be used. |
| RunTestResponse_STATE_UNSPECIFIED RunTestResponse_State = 0 |
| // The test succeeded. |
| // |
| // Some test failures may not be detectable during execution. These |
| // failures will be detected when parsing results off the test logs in a |
| // later step of test_runner. |
| RunTestResponse_SUCCEEDED RunTestResponse_State = 1 |
| // The test failed. |
| RunTestResponse_FAILED RunTestResponse_State = 2 |
| // The test hit the requested timeout. |
| RunTestResponse_TIMED_OUT RunTestResponse_State = 3 |
| // The test was aborted externally. |
| RunTestResponse_ABORTED RunTestResponse_State = 4 |
| ) |
| |
| var RunTestResponse_State_name = map[int32]string{ |
| 0: "STATE_UNSPECIFIED", |
| 1: "SUCCEEDED", |
| 2: "FAILED", |
| 3: "TIMED_OUT", |
| 4: "ABORTED", |
| } |
| |
| var RunTestResponse_State_value = map[string]int32{ |
| "STATE_UNSPECIFIED": 0, |
| "SUCCEEDED": 1, |
| "FAILED": 2, |
| "TIMED_OUT": 3, |
| "ABORTED": 4, |
| } |
| |
| func (x RunTestResponse_State) String() string { |
| return proto.EnumName(RunTestResponse_State_name, int32(x)) |
| } |
| |
| func (RunTestResponse_State) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_c8a06e1d821d63d9, []int{1, 0} |
| } |
| |
| // RunTestRequest defines the input of `phosphorus runtest`. |
| type RunTestRequest struct { |
| Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` |
| // A test may use more than one DUT at once. |
| DutHostnames []string `protobuf:"bytes,2,rep,name=dut_hostnames,json=dutHostnames,proto3" json:"dut_hostnames,omitempty"` |
| // Types that are valid to be assigned to Test: |
| // *RunTestRequest_Autotest_ |
| Test isRunTestRequest_Test `protobuf_oneof:"test"` |
| Environment *RunTestRequest_Environment `protobuf:"bytes,4,opt,name=environment,proto3" json:"environment,omitempty"` |
| // Hard deadline for execution. |
| // |
| // All test execution should abort beyond this deadline. |
| Deadline *timestamp.Timestamp `protobuf:"bytes,5,opt,name=deadline,proto3" json:"deadline,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *RunTestRequest) Reset() { *m = RunTestRequest{} } |
| func (m *RunTestRequest) String() string { return proto.CompactTextString(m) } |
| func (*RunTestRequest) ProtoMessage() {} |
| func (*RunTestRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c8a06e1d821d63d9, []int{0} |
| } |
| |
| func (m *RunTestRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_RunTestRequest.Unmarshal(m, b) |
| } |
| func (m *RunTestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_RunTestRequest.Marshal(b, m, deterministic) |
| } |
| func (m *RunTestRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_RunTestRequest.Merge(m, src) |
| } |
| func (m *RunTestRequest) XXX_Size() int { |
| return xxx_messageInfo_RunTestRequest.Size(m) |
| } |
| func (m *RunTestRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_RunTestRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_RunTestRequest proto.InternalMessageInfo |
| |
| func (m *RunTestRequest) GetConfig() *Config { |
| if m != nil { |
| return m.Config |
| } |
| return nil |
| } |
| |
| func (m *RunTestRequest) GetDutHostnames() []string { |
| if m != nil { |
| return m.DutHostnames |
| } |
| return nil |
| } |
| |
| type isRunTestRequest_Test interface { |
| isRunTestRequest_Test() |
| } |
| |
| type RunTestRequest_Autotest_ struct { |
| Autotest *RunTestRequest_Autotest `protobuf:"bytes,3,opt,name=autotest,proto3,oneof"` |
| } |
| |
| func (*RunTestRequest_Autotest_) isRunTestRequest_Test() {} |
| |
| func (m *RunTestRequest) GetTest() isRunTestRequest_Test { |
| if m != nil { |
| return m.Test |
| } |
| return nil |
| } |
| |
| func (m *RunTestRequest) GetAutotest() *RunTestRequest_Autotest { |
| if x, ok := m.GetTest().(*RunTestRequest_Autotest_); ok { |
| return x.Autotest |
| } |
| return nil |
| } |
| |
| func (m *RunTestRequest) GetEnvironment() *RunTestRequest_Environment { |
| if m != nil { |
| return m.Environment |
| } |
| return nil |
| } |
| |
| func (m *RunTestRequest) GetDeadline() *timestamp.Timestamp { |
| if m != nil { |
| return m.Deadline |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*RunTestRequest) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*RunTestRequest_Autotest_)(nil), |
| } |
| } |
| |
| // Autotest describes the DUT-agnostic parameters of an autotest test run. |
| type RunTestRequest_Autotest struct { |
| // Test name as given in the control file. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Args to pass into the test run (meaning depends on the test). |
| TestArgs string `protobuf:"bytes,2,opt,name=test_args,json=testArgs,proto3" json:"test_args,omitempty"` |
| // Name to be used to display this test's output artifacts, e.g. logs, |
| // results etc. By default display_name is the same as name. |
| DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| // True for client-side tests, false for server-side tests. |
| IsClientTest bool `protobuf:"varint,4,opt,name=is_client_test,json=isClientTest,proto3" json:"is_client_test,omitempty"` |
| // Key:value pairs added to the autoserv command. These are metadata which |
| // should not affect code execution. |
| Keyvals map[string]string `protobuf:"bytes,5,rep,name=keyvals,proto3" json:"keyvals,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *RunTestRequest_Autotest) Reset() { *m = RunTestRequest_Autotest{} } |
| func (m *RunTestRequest_Autotest) String() string { return proto.CompactTextString(m) } |
| func (*RunTestRequest_Autotest) ProtoMessage() {} |
| func (*RunTestRequest_Autotest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c8a06e1d821d63d9, []int{0, 0} |
| } |
| |
| func (m *RunTestRequest_Autotest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_RunTestRequest_Autotest.Unmarshal(m, b) |
| } |
| func (m *RunTestRequest_Autotest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_RunTestRequest_Autotest.Marshal(b, m, deterministic) |
| } |
| func (m *RunTestRequest_Autotest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_RunTestRequest_Autotest.Merge(m, src) |
| } |
| func (m *RunTestRequest_Autotest) XXX_Size() int { |
| return xxx_messageInfo_RunTestRequest_Autotest.Size(m) |
| } |
| func (m *RunTestRequest_Autotest) XXX_DiscardUnknown() { |
| xxx_messageInfo_RunTestRequest_Autotest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_RunTestRequest_Autotest proto.InternalMessageInfo |
| |
| func (m *RunTestRequest_Autotest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *RunTestRequest_Autotest) GetTestArgs() string { |
| if m != nil { |
| return m.TestArgs |
| } |
| return "" |
| } |
| |
| func (m *RunTestRequest_Autotest) GetDisplayName() string { |
| if m != nil { |
| return m.DisplayName |
| } |
| return "" |
| } |
| |
| func (m *RunTestRequest_Autotest) GetIsClientTest() bool { |
| if m != nil { |
| return m.IsClientTest |
| } |
| return false |
| } |
| |
| func (m *RunTestRequest_Autotest) GetKeyvals() map[string]string { |
| if m != nil { |
| return m.Keyvals |
| } |
| return nil |
| } |
| |
| // remote test drive-agnostic environment variables and similar parameters |
| type RunTestRequest_Environment struct { |
| // Directory in Google Storage (bucket or subdirectory) in which |
| // synchronous log-data will be offloaded. Reused across tasks. |
| // ex. "gs://chromeos-autotest-results/sync-offloads-testing" |
| GsRootDir string `protobuf:"bytes,2,opt,name=gs_root_dir,json=gsRootDir,proto3" json:"gs_root_dir,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *RunTestRequest_Environment) Reset() { *m = RunTestRequest_Environment{} } |
| func (m *RunTestRequest_Environment) String() string { return proto.CompactTextString(m) } |
| func (*RunTestRequest_Environment) ProtoMessage() {} |
| func (*RunTestRequest_Environment) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c8a06e1d821d63d9, []int{0, 1} |
| } |
| |
| func (m *RunTestRequest_Environment) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_RunTestRequest_Environment.Unmarshal(m, b) |
| } |
| func (m *RunTestRequest_Environment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_RunTestRequest_Environment.Marshal(b, m, deterministic) |
| } |
| func (m *RunTestRequest_Environment) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_RunTestRequest_Environment.Merge(m, src) |
| } |
| func (m *RunTestRequest_Environment) XXX_Size() int { |
| return xxx_messageInfo_RunTestRequest_Environment.Size(m) |
| } |
| func (m *RunTestRequest_Environment) XXX_DiscardUnknown() { |
| xxx_messageInfo_RunTestRequest_Environment.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_RunTestRequest_Environment proto.InternalMessageInfo |
| |
| func (m *RunTestRequest_Environment) GetGsRootDir() string { |
| if m != nil { |
| return m.GsRootDir |
| } |
| return "" |
| } |
| |
| // RunTestResponse defines the output of `phosphorus runtest`. |
| type RunTestResponse struct { |
| // `phosphorus runtest` exits with exit code 0 unless there is an |
| // infrastructure failure. When the exit code is 0, `state` indicates the |
| // best known state of the test execution (see comments on State enum). |
| State RunTestResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=test_platform.phosphorus.RunTestResponse_State" json:"state,omitempty"` |
| // Absolute path to the test results directory created by `runtest`. |
| // Must be inside config.task.results_dir (the overall results directory). |
| ResultsDir string `protobuf:"bytes,2,opt,name=results_dir,json=resultsDir,proto3" json:"results_dir,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *RunTestResponse) Reset() { *m = RunTestResponse{} } |
| func (m *RunTestResponse) String() string { return proto.CompactTextString(m) } |
| func (*RunTestResponse) ProtoMessage() {} |
| func (*RunTestResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c8a06e1d821d63d9, []int{1} |
| } |
| |
| func (m *RunTestResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_RunTestResponse.Unmarshal(m, b) |
| } |
| func (m *RunTestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_RunTestResponse.Marshal(b, m, deterministic) |
| } |
| func (m *RunTestResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_RunTestResponse.Merge(m, src) |
| } |
| func (m *RunTestResponse) XXX_Size() int { |
| return xxx_messageInfo_RunTestResponse.Size(m) |
| } |
| func (m *RunTestResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_RunTestResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_RunTestResponse proto.InternalMessageInfo |
| |
| func (m *RunTestResponse) GetState() RunTestResponse_State { |
| if m != nil { |
| return m.State |
| } |
| return RunTestResponse_STATE_UNSPECIFIED |
| } |
| |
| func (m *RunTestResponse) GetResultsDir() string { |
| if m != nil { |
| return m.ResultsDir |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterEnum("test_platform.phosphorus.RunTestResponse_State", RunTestResponse_State_name, RunTestResponse_State_value) |
| proto.RegisterType((*RunTestRequest)(nil), "test_platform.phosphorus.RunTestRequest") |
| proto.RegisterType((*RunTestRequest_Autotest)(nil), "test_platform.phosphorus.RunTestRequest.Autotest") |
| proto.RegisterMapType((map[string]string)(nil), "test_platform.phosphorus.RunTestRequest.Autotest.KeyvalsEntry") |
| proto.RegisterType((*RunTestRequest_Environment)(nil), "test_platform.phosphorus.RunTestRequest.Environment") |
| proto.RegisterType((*RunTestResponse)(nil), "test_platform.phosphorus.RunTestResponse") |
| } |
| |
| func init() { |
| proto.RegisterFile("test_platform/phosphorus/runtest.proto", fileDescriptor_c8a06e1d821d63d9) |
| } |
| |
| var fileDescriptor_c8a06e1d821d63d9 = []byte{ |
| // 598 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x5d, 0x6b, 0xdb, 0x3c, |
| 0x18, 0x6d, 0x3e, 0x9b, 0x3c, 0x4e, 0xfb, 0xe6, 0x15, 0x1b, 0x98, 0x0c, 0xd6, 0xac, 0xfb, 0xa0, |
| 0x57, 0x36, 0x6b, 0xc7, 0x28, 0xbd, 0x18, 0x24, 0xb1, 0x4b, 0xb3, 0x8f, 0x76, 0x28, 0xce, 0x18, |
| 0xbb, 0x31, 0x6e, 0xa2, 0x38, 0xa2, 0xb6, 0xe4, 0x49, 0x72, 0x21, 0x7f, 0x65, 0x3f, 0x61, 0xbf, |
| 0x66, 0x3f, 0x69, 0x48, 0x76, 0xda, 0xf4, 0x22, 0xd0, 0xdd, 0x49, 0xcf, 0x73, 0xce, 0xd1, 0x39, |
| 0x07, 0x04, 0x6f, 0x14, 0x91,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