mirror of
https://github.com/google/re2.git
synced 2025-10-14 02:17:38 +08:00
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:
@@ -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
8
.github/bazel.sh
vendored
@@ -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
|
||||
|
||||
|
21
BUILD.bazel
21
BUILD.bazel
@@ -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",
|
||||
],
|
||||
)
|
||||
|
Reference in New Issue
Block a user