Prathmesh Prabhu | 4220754 | 2020-04-20 23:13:23 -0700 | [diff] [blame] | 1 | #!/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. |
| 9 | set -eu |
| 10 | |
| 11 | readonly script_dir="$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")" |
| 12 | source "${script_dir}/setup_cipd.sh" |
| 13 | |
| 14 | cd go || { echo "failed to cd into go"; exit 1; } |
| 15 | |
| 16 | go test -mod=readonly ./... |