test interprocess concurrency (#258)

* added cfoa_interprocess_concurrency_tests

* avoided C++14 digit separators

* stopped using exit codes to pass numerical info to parent

* Reorder includes to make msvc-14.0 happy

* made cumulative_stats interprocess concurrency safe

* disabled interprocess_concurrency_tests for Clang 3.5-8
(Boost.Process compile error)

* made test names shorter for the benefit of MINGW32

---------

Co-authored-by: Peter Dimov <pdimov@gmail.com>
This commit is contained in:
joaquintides
2024-06-22 09:13:30 +02:00
committed by GitHub
co-authored by Peter Dimov
parent a166a56401
commit e3818afd45
5 changed files with 146 additions and 7 deletions
+23 -1
View File
@@ -1,6 +1,7 @@
# Copyright 2006-2008 Daniel James.
# Copyright 2022-2023 Christian Mazakas
# Copyright 2024 Joaquin M Lopez Munoz
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -359,6 +360,27 @@ run cfoa/serialization_tests.cpp
<library>/boost//serialization/<warnings>off
: cfoa_serialization_tests ;
rule make_cfoa_interprocess_concurrency_tests ( name : defines ? )
{
run cfoa/interprocess_concurrency_tests.cpp /boost/filesystem//boost_filesystem : :
: <define>$(defines)
<warnings>off
<link>static
<toolset>clang-3.5:<build>no # Boost.Process does not compile
<toolset>clang-3.6:<build>no # idem
<toolset>clang-3.7:<build>no # idem
<toolset>clang-3.8:<build>no # idem
<target-os>cygwin:<build>no
: $(name) ;
}
make_cfoa_interprocess_concurrency_tests cfoa_interproc_conc_tests ;
make_cfoa_interprocess_concurrency_tests cfoa_interproc_conc_tests_stats
: BOOST_UNORDERED_ENABLE_STATS ;
alias cfoa_tests :
cfoa_$(CFOA_TESTS)
cfoa_serialization_tests ;
cfoa_serialization_tests
cfoa_interproc_conc_tests
cfoa_interproc_conc_tests_stats ;