blob: 44c162e5ae13b1e035a6e3709eee1f454924f9c5 [file] [log] [blame]
# Copyright 2017 Google Inc.
#
# 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.
####################################################################################
#!/bin/bash
# Fail on any error.
set -e
# Display commands to stderr.
set -x
# Change to repo root
cd git*/tink
source ./kokoro/run_tests.sh
# Test that Tink can be installed with the standard Go tooling.
go get github.com/google/tink/go/...
# Run all manual tests.
time bazel test \
--strategy=TestRunner=standalone \
--test_timeout 10000 \
--test_output=all \
//java:src/test/java/com/google/crypto/tink/subtle/AesGcmJceTest \
//java:src/test/java/com/google/crypto/tink/subtle/AesGcmHkdfStreamingTest
# On Linux, run all Maven tests and upload snapshot jars
if [[ $PLATFORM == 'linux' ]]; then
./maven/publish-snapshot.sh
./maven/test-snapshot.sh
fi