mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
test: Increase robustness of the test suite for high -j
This commit is contained in:
parent
be2bac2a7c
commit
5c53c5aa22
|
@ -77,8 +77,8 @@ execute_result execute(const string& cmd, const string& prefix, const string& in
|
|||
bp::async_pipe errorPipe(ios);
|
||||
|
||||
const string delimiter = "\n";
|
||||
ba::deadline_timer inputTimer(ios, boost::posix_time::milliseconds(100)); // NOLINT
|
||||
ba::deadline_timer signalTimer(ios, boost::posix_time::milliseconds(400)); // NOLINT
|
||||
ba::deadline_timer inputTimer(ios, boost::posix_time::milliseconds(1000)); // NOLINT
|
||||
ba::deadline_timer signalTimer(ios, boost::posix_time::milliseconds(2000)); // NOLINT
|
||||
|
||||
// child process
|
||||
bp::child c(cmd, bp::std_out > outputPipe, bp::std_err > errorPipe, bp::std_in < inputPipe);
|
||||
|
|
|
@ -65,7 +65,7 @@ add_testsuite(Protocols
|
|||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/protocols
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
${definitions}
|
||||
)
|
||||
|
||||
|
@ -78,7 +78,7 @@ add_testsuite(Parts
|
|||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/parts
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
)
|
||||
|
||||
add_testsuite(Message
|
||||
|
@ -90,7 +90,7 @@ add_testsuite(Message
|
|||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/message
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
${definitions}
|
||||
)
|
||||
|
||||
|
@ -104,7 +104,7 @@ add_testsuite(Region
|
|||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/region
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
${definitions}
|
||||
)
|
||||
|
||||
|
@ -127,7 +127,7 @@ add_testsuite(Device
|
|||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
)
|
||||
|
||||
set(VERSION_MAJOR 1)
|
||||
|
@ -172,7 +172,7 @@ add_testsuite(Plugins
|
|||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
DEPENDS FairMQPlugin_test_dummy FairMQPlugin_test_dummy2
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
)
|
||||
|
||||
add_testsuite(PluginsPrelinked
|
||||
|
@ -183,7 +183,7 @@ add_testsuite(PluginsPrelinked
|
|||
LINKS FairMQ FairMQPlugin_test_dummy FairMQPlugin_test_dummy2
|
||||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
)
|
||||
|
||||
add_testsuite(PluginServices
|
||||
|
@ -196,7 +196,7 @@ add_testsuite(PluginServices
|
|||
LINKS FairMQ
|
||||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
)
|
||||
|
||||
add_testsuite(EventManager
|
||||
|
@ -207,7 +207,7 @@ add_testsuite(EventManager
|
|||
LINKS FairMQ
|
||||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
)
|
||||
|
||||
add_testsuite(Properties
|
||||
|
@ -219,7 +219,7 @@ add_testsuite(Properties
|
|||
LINKS FairMQ
|
||||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
)
|
||||
|
||||
# add_testsuite(StateMachine
|
||||
|
@ -241,7 +241,7 @@ add_testsuite(Tools
|
|||
LINKS FairMQ
|
||||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
)
|
||||
|
||||
add_testsuite(Channel
|
||||
|
@ -252,7 +252,7 @@ add_testsuite(Channel
|
|||
LINKS FairMQ
|
||||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
)
|
||||
|
||||
add_testsuite(Transport
|
||||
|
@ -265,7 +265,7 @@ add_testsuite(Transport
|
|||
LINKS FairMQ
|
||||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
${definitions}
|
||||
)
|
||||
|
||||
|
@ -277,7 +277,7 @@ add_testsuite(Poller
|
|||
LINKS FairMQ
|
||||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
${definitions}
|
||||
)
|
||||
|
||||
|
@ -289,6 +289,6 @@ add_testsuite(MemoryResources
|
|||
LINKS FairMQ
|
||||
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
TIMEOUT 5
|
||||
TIMEOUT 20
|
||||
${definitions}
|
||||
)
|
||||
|
|
|
@ -28,7 +28,7 @@ class Receiver : public Device
|
|||
protected:
|
||||
auto Init() -> void override
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(200));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||
}
|
||||
|
||||
auto Run() -> void override
|
||||
|
|
|
@ -28,7 +28,7 @@ class Sender : public Device
|
|||
protected:
|
||||
auto Init() -> void override
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(200));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||
}
|
||||
|
||||
auto Run() -> void override
|
||||
|
|
|
@ -76,10 +76,9 @@ int TestData::ndeallocations = 0;
|
|||
|
||||
TEST(MemoryResources, transportAllocatorMap)
|
||||
{
|
||||
// size_t session{tools::UuidHash()};
|
||||
size_t session{tools::UuidHash()};
|
||||
ProgOptions config;
|
||||
// config.SetProperty<string>("session", to_string(session));
|
||||
config.SetProperty<string>("session", "default");
|
||||
config.SetProperty<string>("session", to_string(session));
|
||||
|
||||
FactoryType factoryZMQ = TransportFactory::CreateTransportFactory("zeromq", fair::mq::tools::Uuid(), &config);
|
||||
FactoryType factorySHM = TransportFactory::CreateTransportFactory("shmem", fair::mq::tools::Uuid(), &config);
|
||||
|
|
|
@ -45,8 +45,9 @@ void RegionsSizeMismatch()
|
|||
ASSERT_EQ(region2, nullptr);
|
||||
}
|
||||
|
||||
void RegionsCache(const string& transport, const string& address)
|
||||
void RegionsCache(const string& transport, const string& _address)
|
||||
{
|
||||
std::string address(tools::ToString(_address, "_", transport));
|
||||
size_t session1 = tools::UuidHash();
|
||||
size_t session2 = tools::UuidHash();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user