bazel: define and use small_tests

Avoids having the same list of exclusions in three places.

Change-Id: I5912139e89800eeb4b72f3b6ed11996fe95b5ee0
Reviewed-on: https://code-review.googlesource.com/c/re2/+/63991
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Jeremy Kun <jkun@google.com>
This commit is contained in:
Russ Cox
2025-08-13 11:53:15 -04:00
parent 43bf853461
commit b1d8dff27b
3 changed files with 24 additions and 21 deletions

View File

@@ -45,13 +45,7 @@ bcr_test_module:
test_flags:
- '--cxxopt=-std=c++17'
test_targets:
- '//:all'
- '-//:dfa_test'
- '-//:exhaustive1_test'
- '-//:exhaustive2_test'
- '-//:exhaustive3_test'
- '-//:exhaustive_test'
- '-//:random_test'
- '//:small_tests'
- '//python:all'
windows_test:
platform: windows
@@ -59,11 +53,5 @@ bcr_test_module:
test_flags:
- '--cxxopt=/std:c++17'
test_targets:
- '//:all'
- '-//:dfa_test'
- '-//:exhaustive1_test'
- '-//:exhaustive2_test'
- '-//:exhaustive3_test'
- '-//:exhaustive_test'
- '-//:random_test'
- '//:small_tests'
- '//python:all'

8
.github/bazel.sh vendored
View File

@@ -16,13 +16,7 @@ do
bazel test \
--extra_toolchains=//python/toolchains:all \
--compilation_mode=${compilation_mode} -- \
//:all \
-//:dfa_test \
-//:exhaustive1_test \
-//:exhaustive2_test \
-//:exhaustive3_test \
-//:exhaustive_test \
-//:random_test \
//:small_tests \
//python:all
done

View File

@@ -436,3 +436,24 @@ cc_binary(
"@google_benchmark//:benchmark_main",
],
)
test_suite(
name = "small_tests",
tags = ["small"],
tests = [
":charclass_test",
":compile_test",
":filtered_re2_test",
":mimics_pcre_test",
":parse_test",
":possible_match_test",
":re2_arg_test",
":re2_test",
":regexp_test",
":required_prefix_test",
":search_test",
":set_test",
":simplify_test",
":string_generator_test",
],
)