16#include <catch2/catch_amalgamated.hpp>
22TEST_CASE(
"dev::robotDescriptionStorage_Test",
"[yarp::dev]")
28 Network::setLocalMode(
true);
30 SECTION(
"Test the robotDescriptionStorage device")
35 pcfg.put(
"device",
"robotDescriptionStorage");
42 devc.device_name =
"test_dev_name";
43 devc.device_type =
"device_type";
46 std::vector<DeviceDescription> list;
47 r =
idesc->getAllDevices(list);
49 CHECK(list.size() == 1);
50 CHECK(list[0].device_name ==
"test_dev_name");
51 CHECK(list[0].device_type ==
"device_type");
57 SECTION(
"Test the robotDescriptionStorage device with attach")
66 pcfg.put(
"device",
"robotDescriptionStorage");
83 SECTION(
"Test the robotDescriptionStorage device with attach")
93 pcfg.put(
"device",
"robotDescriptionStorage");
111 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.
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]")