blob: e8619ae34b1d2bcb0db377607558b2c0cbd5a6a1 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package main
import (
func main() {
input := &steps.RunTestsRequest{}
var writeOutputProps func(*steps.RunTestsResponse)
var mergeOutputProps func(*steps.RunTestsResponse)
build.Main(input, &writeOutputProps, &mergeOutputProps,
func(ctx context.Context, args []string, st *build.State) error {
logging.Infof(ctx, "have input %v", input)
execute.Run(ctx, input)
// actual build code here, build is already Start'd
// input was parsed from build.Input.Properties
writeOutputProps(&steps.RunTestsResponse{ErrorSummaryMarkdown: "winning!"})
return nil // will mark the Build as SUCCESS