blob: 3f9e81c666f04c33f75309db3a948cb0c697ba66 [file] [log] [blame]
#!/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 chromiumos/tast/cmd/tast-lint; then
echo "*** Failed to build and install tast-lint."
exit 1
fi
exec "${tast_root}/bin/tast-lint" "$@"