17#include <catch2/catch_amalgamated.hpp>
22 YARP_REQUIRE_PLUGIN(
"test_numbers",
"portmonitor")
35 TestCase {
"fast_tcp", 1},
37 TestCase {
"fast_tcp+send.portmonitor+type.dll+file.test_numbers1+type.dll",2},
38 TestCase {
"fast_tcp+send.portmonitor+type.dll+file.test_numbers1+file1.test_numbers1+type1.dll", 3},
39 TestCase {
"fast_tcp+send.portmonitor+type.dll+file.test_numbers1+file1.test_numbers2+type1.dll", 4},
40 TestCase {
"fast_tcp+send.portmonitor+type.dll+file.test_numbers2+file1.test_numbers1+type1.dll", 3},
42 TestCase {
"fast_tcp+recv.portmonitor+type.dll+file.test_numbers1+type.dll",2},
43 TestCase {
"fast_tcp+recv.portmonitor+type.dll+file.test_numbers1+file1.test_numbers1+type1.dll", 3},
44 TestCase {
"fast_tcp+recv.portmonitor+type.dll+file.test_numbers1+file1.test_numbers2+type1.dll", 4},
45 TestCase {
"fast_tcp+recv.portmonitor+type.dll+file.test_numbers2+file1.test_numbers1+type1.dll", 3},
47 TestCase {
"fast_tcp+send.portmonitor+type.dll+file.test_numbers1+type.dll+recv.portmonitor+type.dll+file.test_numbers1+type.dll",3},
48 TestCase {
"fast_tcp+send.portmonitor+type.dll+file.test_numbers1+file1.test_numbers1+type1.dll+recv.portmonitor+type.dll+file.test_numbers1+file1.test_numbers1+type1.dll", 5},
49 TestCase {
"fast_tcp+send.portmonitor+type.dll+file.test_numbers1+file1.test_numbers2+type1.dll+recv.portmonitor+type.dll+file.test_numbers1+file1.test_numbers2+type1.dll", 10},
50 TestCase {
"fast_tcp+send.portmonitor+type.dll+file.test_numbers2+file1.test_numbers1+type1.dll+recv.portmonitor+type.dll+file.test_numbers2+file1.test_numbers1+type1.dll", 7}
53 SECTION(
"Test that normally the portmonitor is not used")
59 receiver.
open(
"/recv");
70 CHECK(rval.
asInt64()==tc.expected_value);
static bool connect(const std::string &src, const std::string &dest, const std::string &carrier="", bool quiet=true)
Request that an output port connect to an input port.
static bool setLocalMode(bool flag)
Chooses whether communication is process-local.
Utilities for manipulating the YARP network, including initialization and shutdown.
A mini-server for network communication.
bool write(const PortWriter &writer, const PortWriter *callback=nullptr) const override
Write an object to the port.
bool read(PortReader &reader, bool willReply=false) override
Read an object from the port.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A single value (typically within a Bottle).
virtual std::int64_t asInt64() const
Get 64-bit integer value.
void delay(double seconds)
Wait for a certain number of seconds.
The main, catch-all namespace for YARP.
TEST_CASE("pm::stats_monitorTest", "[yarp::pm]")