17#include <catch2/catch_amalgamated.hpp>
23TEST_CASE(
"dev::robotDescriptionStorage_Test",
"[yarp::dev]")
29 Network::setLocalMode(
true);
31 SECTION(
"Test the robotDescriptionStorage device")
36 pcfg.put(
"device",
"robotDescriptionStorage");
44 devc.device_name =
"test_dev_name";
45 devc.device_type =
"device_type";
48 std::vector<DeviceDescription> list;
49 r =
idesc->getAllDevices(list);
51 CHECK(list.size() == 1);
52 CHECK(list[0].device_name ==
"test_dev_name");
53 CHECK(list[0].device_type ==
"device_type");
59 SECTION(
"Test the robotDescriptionStorage device with attach")
68 pcfg.put(
"device",
"robotDescriptionStorage");
85 SECTION(
"Test the robotDescriptionStorage device with attach")
95 pcfg.put(
"device",
"robotDescriptionStorage");
113 Network::setLocalMode(
false);
Interface for an object that can wrap/attach to to another.
This interface allows users to retrieve a list which contains the names and the types of the currentl...
A container for a device driver.
A mini-server for performing network communication in the background.
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 class for storing options and configuration information.
void exec_params_test(yarp::dev::PolyDriver *pdrv)
For streams capable of holding different kinds of content, check what they actually have.
void delay(double seconds)
Wait for a certain number of seconds.
An interface to the operating system, including Port based communication.
TEST_CASE("dev::robotDescriptionStorage_Test", "[yarp::dev]")