Skip to content

Commit

Permalink
move some test otel_sdk_build.cmd options into the .bazelrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
malkia committed Dec 24, 2023
1 parent ffed377 commit f31ac30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ bazel-opentelemetry-cpp
otel_sdk.zip
WORKSPACE
.bazelrc
otel_sdk_build.cmd
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ try-import %workspace%/../top.bazelrc

# Select the clang-cli, the definion is in the WORKSPACE (x64_windows-clang-cl)
common:windows --extra_execution_platforms=//:x64_windows-clang-cl --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl

test --test_size_filters=small,medium,large,enormous
test --test_timeout_filters=short,moderate,long,eternal
test --test_verbose_timeout_warnings
6 changes: 3 additions & 3 deletions otel_sdk_build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ REM Exclude building otel_sdk_zip right now, do it later. This warms up the test
"%__BAZEL__%" build --//:with_dll=true -- ... -otel_sdk_zip || goto:error

rem We can't test dbg, fastbuild and opt at the same time, as done above ^^^ (no config "transition" possible when doing testing (AFAIK))
"%__BAZEL__%" test --//:with_dll=true --test_size_filters=small,medium,large,enormous --test_timeout_filters=short,moderate,long,eternal --test_verbose_timeout_warnings -c dbg -- ... -otel_sdk_zip || goto:error
"%__BAZEL__%" test --//:with_dll=true --test_size_filters=small,medium,large,enormous --test_timeout_filters=short,moderate,long,eternal --test_verbose_timeout_warnings -c fastbuild -- ... -otel_sdk_zip || goto:error
"%__BAZEL__%" test --//:with_dll=true --test_size_filters=small,medium,large,enormous --test_timeout_filters=short,moderate,long,eternal --test_verbose_timeout_warnings -c opt -- ... -otel_sdk_zip || goto:error
"%__BAZEL__%" test --//:with_dll=true -c dbg -- ... -otel_sdk_zip || goto:error
"%__BAZEL__%" test --//:with_dll=true -c fastbuild -- ... -otel_sdk_zip || goto:error
"%__BAZEL__%" test --//:with_dll=true -c opt -- ... -otel_sdk_zip || goto:error

"%__BAZEL__%" build --//:with_dll=true otel_sdk_zip || goto:error

Expand Down

0 comments on commit f31ac30

Please sign in to comment.