File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ with section("parse"):
12
12
'NAME': '*',
13
13
'SRCS': '*',
14
14
'LIBS': '*' ,
15
- 'LIBDIRS': '*'}},
15
+ 'LIBDIRS': '*',
16
+ 'TESTARGS': '*'}},
16
17
'add_umf_executable': {
17
18
"pargs": 0,
18
19
"flags": [],
Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ function(add_umf_benchmark)
40
40
# * SRCS - source files
41
41
# * LIBS - libraries to be linked with
42
42
# * LIBDIRS - directories of libraries to be linked with
43
+ # * TESTARGS - additional arguments to be passed to the add_test
43
44
set (oneValueArgs NAME )
44
- set (multiValueArgs SRCS LIBS LIBDIRS)
45
+ set (multiValueArgs SRCS LIBS LIBDIRS TESTARGS )
45
46
cmake_parse_arguments (
46
47
ARG
47
48
""
@@ -66,7 +67,7 @@ function(add_umf_benchmark)
66
67
67
68
add_test (
68
69
NAME ${BENCH_NAME}
69
- COMMAND ${BENCH_NAME}
70
+ COMMAND ${BENCH_NAME} ${ARG_TESTARGS}
70
71
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
71
72
72
73
if ("${BENCH_NAME} " STREQUAL "umf-ubench" )
@@ -148,7 +149,9 @@ add_umf_benchmark(
148
149
NAME benchmark
149
150
SRCS benchmark.cpp
150
151
LIBS ${LIBS_OPTIONAL} benchmark::benchmark
151
- LIBDIRS ${LIB_DIRS} )
152
+ # limit running benchmarks in CI tests to single-threaded
153
+ LIBDIRS ${LIB_DIRS}
154
+ TESTARGS --benchmark_filter=threads:1$)
152
155
153
156
if (UMF_BUILD_BENCHMARKS_MT)
154
157
add_umf_benchmark(
You can’t perform that action at this time.
0 commit comments