mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-18 15:57:13 +02:00
Cleanup of the CmdProxy and migrated some commands (#52)
* migrated rx_fifodepth * Moved and cleand CmdProxy * rx_slient * new commands * examples * fixed result string print
This commit is contained in:

committed by
Dhanya Thattil

parent
975a5a4cab
commit
5c06549982
@ -384,12 +384,6 @@ TEST_CASE("rx_lastclient", "[.cmd]") {
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("rx_checkonline", "[.cmd]") {
|
||||
|
||||
std::ostringstream oss;
|
||||
multiSlsDetectorClient("rx_checkonline", GET, nullptr, oss);
|
||||
REQUIRE(oss.str() == "rx_checkonline All receiver online\n");
|
||||
}
|
||||
|
||||
TEST_CASE("rx_checkversion", "[.cmd]") {
|
||||
|
||||
@ -402,34 +396,35 @@ TEST_CASE("exptime", "[.cmd]") {
|
||||
{
|
||||
std::ostringstream oss;
|
||||
multiSlsDetectorClient("exptime 0.05", PUT, nullptr, oss);
|
||||
REQUIRE(oss.str() == "exptime 0.050000000\n");
|
||||
REQUIRE(oss.str() == "exptime 0.05\n");
|
||||
}
|
||||
{
|
||||
std::ostringstream oss;
|
||||
multiSlsDetectorClient("exptime", GET, nullptr, oss);
|
||||
REQUIRE(oss.str() == "exptime 0.050000000\n");
|
||||
REQUIRE(oss.str() == "exptime 50ms\n");
|
||||
}
|
||||
{
|
||||
std::ostringstream oss;
|
||||
multiSlsDetectorClient("exptime 1", PUT, nullptr, oss);
|
||||
REQUIRE(oss.str() == "exptime 1.000000000\n");
|
||||
REQUIRE(oss.str() == "exptime 1\n");
|
||||
}
|
||||
}
|
||||
|
||||
// TEST_CASE("exptime2", "[.cmd]") {
|
||||
// {
|
||||
// std::ostringstream oss;
|
||||
// multiSlsDetectorClient("exptime2 0.05", PUT, nullptr, oss);
|
||||
// REQUIRE(oss.str() == "exptime2 0.05s\n");
|
||||
// }
|
||||
// {
|
||||
// std::ostringstream oss;
|
||||
// multiSlsDetectorClient("exptime2", GET, nullptr, oss);
|
||||
// REQUIRE(oss.str() == "exptime2 0.05s\n");
|
||||
// }
|
||||
// {
|
||||
// std::ostringstream oss;
|
||||
// multiSlsDetectorClient("exptime2 1", PUT, nullptr, oss);
|
||||
// REQUIRE(oss.str() == "exptime2 1s\n");
|
||||
// }
|
||||
// }
|
||||
|
||||
TEST_CASE("period", "[.cmd]") {
|
||||
{
|
||||
std::ostringstream oss;
|
||||
multiSlsDetectorClient("period 1.25s", PUT, nullptr, oss);
|
||||
REQUIRE(oss.str() == "period 1.25s\n");
|
||||
}
|
||||
{
|
||||
std::ostringstream oss;
|
||||
multiSlsDetectorClient("period", GET, nullptr, oss);
|
||||
REQUIRE(oss.str() == "period 1.25s\n");
|
||||
}
|
||||
{
|
||||
std::ostringstream oss;
|
||||
multiSlsDetectorClient("period 0", PUT, nullptr, oss);
|
||||
REQUIRE(oss.str() == "period 0\n");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user