Skip to content

Commit 525b0e0

Browse files
authored
update doctest and run CTest in parallel
update doctest and run CTest in parallel
1 parent 85ce7ca commit 525b0e0

7 files changed

Lines changed: 302 additions & 217 deletions

File tree

.github/workflows/linux.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ jobs:
6161
ctest_options: -T memcheck
6262
install: sudo apt install valgrind
6363

64-
# Build and with QUILL_X86ARCH
65-
- cxx: g++-12
66-
build_type: Release
67-
std: 23
68-
os: ubuntu-22.04
69-
with_tests: ON
70-
cmake_options: -DCMAKE_CXX_FLAGS:STRING="-DQUILL_X86ARCH -march=native"
71-
7264
# Build and test sanitizers
7365
- cxx: clang++-12
7466
build_type: Release
@@ -112,6 +104,8 @@ jobs:
112104
113105
- name: Test
114106
working-directory: ${{runner.workspace}}/build
115-
run: ctest --build-config ${{matrix.build_type}} ${{matrix.ctest_options}} --output-on-failure
107+
run: |
108+
threads=`nproc`
109+
ctest --build-config ${{matrix.build_type}} ${{matrix.ctest_options}} --parallel $threads --output-on-failure
116110
env:
117111
CTEST_OUTPUT_ON_FAILURE: True

.github/workflows/macos.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ jobs:
4545
4646
- name: Test
4747
working-directory: ${{runner.workspace}}/build
48-
run: ctest --build-config ${{matrix.build_type}} --output-on-failure
48+
run: |
49+
threads=`sysctl -n hw.logicalcpu`
50+
ctest --build-config ${{matrix.build_type}} --parallel $threads --output-on-failure

.github/workflows/windows.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,6 @@ jobs:
7373
7474
- name: Test
7575
working-directory: ${{runner.workspace}}/build
76-
run: ctest --build-config ${{matrix.build_type}} --output-on-failure
76+
run: |
77+
$threads = (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors
78+
ctest --build-config ${{matrix.build_type}} --parallel $threads --output-on-failure

quill/test/BoundedQueueTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ TEST_CASE("bounded_queue_integer_overflow")
8282
}
8383
#endif
8484

85-
TEST_CASE("read_write_multithreaded_plain_ints")
85+
TEST_CASE("bounded_queue_read_write_multithreaded_plain_ints")
8686
{
8787
BoundedQueue buffer{131'072};
8888

0 commit comments

Comments
 (0)