Skip to content

Commit 5b1ae13

Browse files
committed
Adjust test case for micro benchmark runner in 04_shared_lib_specifics.bats
1 parent c2a9519 commit 5b1ae13

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

scripts/tests/bats_runner.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ function bats_runner() {
9191
compile \
9292
--quiet \
9393
--preset "${CXXET_PRESET}" \
94-
--target infra_sanitizer_check \
9594
--target cxxet_examples \
96-
--target cxxet_unit_tests \
9795
--target cxxet_large_benchmarks \
96+
--target cxxet_unit_tests \
97+
--target infra_sanitizer_check \
9898
--last-defines \
9999
--ignore-compile_commands >&2
100100

tests/integration/suite/04_shared_lib_specifics.bats

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@ function teardown_file() {
4545
assert_output --partial "doctest::"
4646
}
4747

48-
@test "Micro benchmarks runner contains expected symbols" {
49-
run nm -C "${CXXET_BIN_DIR}/cxxet_benchmarks"
48+
@test "If present, micro benchmarks runner contains expected symbols" {
49+
local micro_benchmark_runner="${CXXET_BIN_DIR}/cxxet_benchmarks"
50+
51+
if [[ ! -f "${micro_benchmark_runner}" ]]; then
52+
skip "micro benchmark runner not present"
53+
fi
54+
55+
run nm -C "${micro_benchmark_runner}"
5056
assert_success
5157
# contains internal implementation symbols & `google benchmark` stuff:
5258
assert_output --partial "cxxet::impl::"

0 commit comments

Comments
 (0)