blob: efa799411bf4006e6b457ff155d744232a18d6f0 [file] [log] [blame]
#!/bin/bash
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
set -euo pipefail
if [[ -n "${KOKORO_ROOT:-}" ]]; then
cd "${KOKORO_ARTIFACTS_DIR}/git/tink"
fi
./kokoro/testutils/copy_credentials.sh "python/testdata" "all"
# Sourcing required to update callers environment.
source ./kokoro/testutils/install_python3.sh
if [[ -n "${KOKORO_ROOT:-}" ]]; then
use_bazel.sh $(cat python/.bazelversion)
fi
# Run manual tests which rely on key material injected into the Kokoro
# environement.
MANUAL_TARGETS=()
if [[ -n "${KOKORO_ROOT:-}" ]]; then
MANUAL_TARGETS+=(
"//tink/integration/awskms:_aws_kms_aead_test"
"//tink/integration/gcpkms:_gcp_kms_aead_test"
)
fi
readonly MANUAL_TARGETS
./kokoro/testutils/run_bazel_tests.sh python "${MANUAL_TARGETS[@]}"