Skip to content

Commit

Permalink
Add Kokoro script for running all Wycheproof tests.
Browse files Browse the repository at this point in the history
This will be configured to run as a scheduled/manually-triggered job, as opposed to the smaller scope of the tests currently being run during presubmit/postsubmit (kokoro/run_continuous_tests.sh).

NOKEYCHECK=True
PiperOrigin-RevId: 507602263
  • Loading branch information
chuckx committed Feb 28, 2023
1 parent d65abb5 commit 2ef87e7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions kokoro/run_all_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Fail on any error.
set -e

# Display commands to stderr.
set -x

if [[ -n "${KOKORO_ROOT}" ]] ; then
# Change to the repository root.
cd git*/wycheproof

use_bazel.sh "$(cat .bazelversion)"
fi

# TODO(ckl): Distinguish between test failures and execution failures.

# Run all tests to generate logs.
# We don't care about the test results, thus always return successfully.
bazel query "kind(test, :all)" \
| grep AllTests \
| grep -v Local \
| xargs bazel test --test_output=all \
|| exit 0

0 comments on commit 2ef87e7

Please sign in to comment.