YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
fakeLLMDevice_test.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#include <yarp/os/Network.h>
9#include <yarp/dev/ILLM.h>
12
13#include <catch2/catch_amalgamated.hpp>
14#include <harness.h>
15
16using namespace yarp::dev;
17using namespace yarp::os;
18
19TEST_CASE("dev::fakeLLMDeviceTest", "[yarp::dev]")
20{
21 YARP_REQUIRE_PLUGIN("fakeLLMDevice", "device");
22
23 Network::setLocalMode(true);
24
25 SECTION("Checking fakeLLMdevice")
26 {
28 ILLM* illm = nullptr;
29
31 {
33 llm_cfg.put("device", "fakeLLMDevice");
36
37 REQUIRE(fakellmdev.view(illm));
38 }
39
40 //execute tests
42
43 //"Close all polydrivers and check"
45 }
46
47 Network::setLocalMode(false);
48}
ILLM interface.
Definition ILLM.h:26
A container for a device driver.
Definition PolyDriver.h:23
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.
Definition Property.h:32
TEST_CASE("dev::fakeLLMDeviceTest", "[yarp::dev]")
void exec_params_test(yarp::dev::PolyDriver *pdrv)
void exec_iLLM_test_1(yarp::dev::ILLM *illm)
Definition ILLMTest.h:17
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.