-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude Thread_test in hoofs from GitHub CI Bazel
- Loading branch information
Showing
2 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2022 by Apex.AI Inc. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# This script builds iceoryx_hoofs und iceoryx_posh and executes all tests | ||
|
||
set -e | ||
|
||
msg() { | ||
printf "\033[1;32m%s: %s\033[0m\n" ${FUNCNAME[1]} "$1" | ||
} | ||
|
||
WORKSPACE=$(git rev-parse --show-toplevel) | ||
cd ${WORKSPACE} | ||
|
||
msg "installing build dependencies" | ||
sudo apt-get update && sudo apt-get install -y libacl1-dev libncurses5-dev | ||
|
||
msg "compiler versions: | ||
$(gcc --version) | ||
$(clang --version) | ||
$(bazel --version)" | ||
|
||
msg "Linting Bazel files" | ||
bazel run //:buildifier_lint_check | ||
|
||
# Build everything including stresstests | ||
msg "Bazel build" | ||
bazel build //... | ||
|
||
# Evaluate test failure https://github.com/eclipse-iceoryx/iceoryx/issues/1547 | ||
BAZEL_GTEST_FILTER="-Thread_test*" | ||
|
||
# We exclude the sofi stresstest in CI since we cannot set the CPU Affinity in the GitHub Action Runners | ||
msg "running tests" | ||
bazel test //... --deleted_packages=iceoryx_hoofs/test/stresstests --test_output=all --test_arg=--gtest_filter="$BAZEL_GTEST_FILTER" |