blob: 8b185be920c7974e51b93d009c24ad924e27599e [file] [edit]
#!/bin/bash -e
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# 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" "$@"