blob: d4f54a7e094c84bec344bb8b437c49c4e3f2c206 [file] [log] [blame]
Brian Silverman7d89e282021-11-17 17:36:54 -08001#!/bin/bash
2# Copyright 2021 The Bazel Authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16set -euox pipefail
17
18images=(
19"opensuse/leap:latest"
20)
21
22git_root=$(git rev-parse --show-toplevel)
23readonly git_root
24
25echo "git root: $git_root"
26
27for image in "${images[@]}"; do
28 docker pull "${image}"
29 docker run --rm --entrypoint=/bin/bash --volume="${git_root}:/src" "${image}" -c """
30set -exuo pipefail
31
32# Common setup
33zypper -n update
34zypper -n install curl python tar gzip gcc libncurses5 binutils-gold
35
36# Run tests
37cd /src
38tests/scripts/run_tests.sh
39"""
40done