blob: 4b07931e2d438334205f45589b0120adb17b71da [file] [edit]
#!/bin/bash -e
# Copyright 2018 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Absolute path to the root directory of the repo checkout.
readonly repo_root="$(cd "$(dirname "$(readlink -e "$0")")/../../../.."; pwd)"
readonly tast_root="${repo_root}/src/platform/tast"
export GOBIN="${tast_root}/bin"
if ! "${tast_root}/tools/go.sh" install go.chromium.org/tast/cmd/tast-lint; then
echo "*** Failed to build and install tast-lint."
exit 1
fi
exec "${tast_root}/bin/tast-lint" "$@"