blob: 783ea34ce96b3058a75164a8bccb075509a26cdd [file] [log] [blame]
Prathmesh Prabhu42207542020-04-20 23:13:23 -07001#!/bin/bash
2#
3# Copyright 2020 The Chromium OS Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6#
7# Runs go test on all of the packages to validate the example code.
8# This script sets up the right Go toolchain and blacklists failing packages.
9set -eu
10
11readonly script_dir="$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")"
12source "${script_dir}/setup_cipd.sh"
13
14cd go || { echo "failed to cd into go"; exit 1; }
15
16go test -mod=readonly ./...