blob: 62dd6bb931dd3e513ef84a3b7cd970d82e6b4d0d [file] [log] [blame] [edit]
#!/bin/bash
# Part of the Crubit project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
set -euo pipefail
if [ $# -ne 0 ]; then
TESTS_TO_RUN=$@
else
TESTS_TO_RUN=(//...)
fi
bazel test \
--test_tag_filters=crubit_golden_test,-manual \
--build_tag_filters=crubit_golden_test,-manual \
--config=llvm-unstable \
--test_strategy=local \
--test_env=WRITE_GOLDENS=1 \
-k \
$TESTS_TO_RUN