18#include <catch2/catch_amalgamated.hpp>
21TEST_CASE(
"pm::bottle_compression_zlibTest",
"[yarp::pm]")
23 YARP_REQUIRE_PLUGIN(
"bottle_compression_zlib",
"portmonitor")
35 std::string expected_value;
39 TestCase {
"fast_tcp",
"123456"},
40 TestCase {
"fast_tcp+send.portmonitor+file.bottle_compression_zlib+type.dll+recv.portmonitor+file.bottle_compression_zlib+type.dll",
"123456"}
43 SECTION(
"Test that normally the portmonitor is not used")
49 receiver.
open(
"/recv");
60 CHECK(rval.
asString()==tc.expected_value);
TEST_CASE("pm::bottle_compression_zlibTest", "[yarp::pm]")
static Carrier * getCarrierTemplate(const std::string &name)
Get template for carrier.
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::string asString() const
Get string value.
void delay(double seconds)
Wait for a certain number of seconds.
The main, catch-all namespace for YARP.