File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ jobs:
193193
194194 - name : Test
195195 if : matrix.test-labels
196- timeout-minutes : 20
196+ timeout-minutes : 15
197197 run : |
198198 cd ${BUILD_SUB_DIR}
199199
@@ -215,7 +215,14 @@ jobs:
215215 source test.env
216216 fi
217217
218- # run tests
218+ # Install gtest-parallel
219+ if [[ ${TEST_LABELS} == *'IT'* ]]; then
220+ wget https://github.com/google/gtest-parallel/archive/refs/heads/master.zip
221+ unzip master.zip
222+ export PATH=`pwd`/gtest-parallel-master:$PATH
223+ fi
224+
225+ # Run tests
219226 ctest -VV -L "${TEST_LABELS}"
220227
221228 # Stop Kafka cluster for integration test & regression test
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ file(GLOB TEST_SRCS *.cc)
66add_executable ("${PROJECT_NAME} " ${TEST_SRCS} )
77target_link_libraries ("${PROJECT_NAME} " modern-cpp-kafka-api gtest gtest_main)
88
9- add_test (NAME ${PROJECT_NAME} COMMAND ./${PROJECT_NAME} )
9+ add_test (NAME ${PROJECT_NAME}
10+ COMMAND gtest-parallel ./${PROJECT_NAME} )
1011set_tests_properties (${PROJECT_NAME} PROPERTIES LABELS "IT" )
1112
1213if (BUILD_OPTION_USE_ASAN OR BUILD_OPTION_USE_TSAN)
You can’t perform that action at this time.
0 commit comments