blob: 783ea34ce96b3058a75164a8bccb075509a26cdd [file] [log] [blame]
# Copyright 2020 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.
# Runs go test on all of the packages to validate the example code.
# This script sets up the right Go toolchain and blacklists failing packages.
set -eu
readonly script_dir="$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")"
source "${script_dir}/"
cd go || { echo "failed to cd into go"; exit 1; }
go test -mod=readonly ./...